fiber.lengths: 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)
Value
A vector with fiber lengths
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
Author
J. Arbour
References
Arbour, J. In Prep. GoodFibes: an R package for the detection of muscle fibers from diceCT scans.