View source: R/fiber.lengths.R
fiber.lengths | R Documentation |
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
fiber.lengths(fib.list, res = NULL, df = 2, length.out = 500)
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 |
A vector with fiber lengths
J. Arbour
Arbour, J. In Prep. GoodFibes: an R package for the detection of muscle fibers from diceCT scans.
fiber.angle
,fiber.curve
data(ant.final)
fl<-fiber.lengths(ant.final, res = 0.000673107, df=1)
mean(fl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.