fiber.lengths {GoodFibes}R Documentation

Calculated the length of smoothed muscle fibers

Description

Determines the length of reconstructed and smoothed muscle fibers. Fibers are smoothed using splines::ns and then oversampled (length.out). The sum of all straight line segments on the smoothed paths is taken as the overall fiber length

Usage

fiber.lengths(fib.list, res = NULL, df = 2, length.out = 500)

Arguments

fib.list

A list of fibers containing $fiber.points. Produced by good.fibes or the various cleaning functions (quality check, fuse.fibers, check.overlap)

res

The resolution of the isometric voxels (i.e., the distance between images). Should be given as a linear measure (e.g., mm, um)

df

The degrees of freedom passed to splines2::nsp. A df = 1 produces a straight fiber, while values >1 allow fibers to curve.

length.out

The number of straight line segments that the smoothed curve will be divided into for calculation of length

Value

A vector with fiber lengths

Author(s)

J. Arbour

References

Arbour, J. In Prep. GoodFibes: an R package for the detection of muscle fibers from diceCT scans.

See Also

fiber.angle,fiber.curve

Examples


data(ant.final)


fl<-fiber.lengths(ant.final, res = 0.000673107, df=1)
mean(fl)


[Package GoodFibes version 0.1.10 Index]