Learn R Programming

GoodFibes (version 0.1.13)

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.

See Also

fiber.angle,fiber.curve

Examples

Run this code

data(ant.final)

# \donttest{
fl<-fiber.lengths(ant.final, res = 0.000673107, df=1)
mean(fl)
# }

Run the code above in your browser using DataLab