Learn R Programming

GoodFibes (version 0.1.12)

thresholdPlot: Plot image from diceCT stack using thresholding

Description

Plot a selected image from the image stack with values below threshold set to black (grayscale = 0). Can be used to select threshold and cutoff values used in good.fibes.

Usage

thresholdPlot(images, n, threshold)

Value

Returns a plot

Arguments

images

A character vector of image stack file names. Generated with list.files

n

The number of the selected image in the vector "images"

threshold

The cutoff value for grayscale values. All voxels with grayscales below threshold will be displayed as black.

Author

J. Arbour

References

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

See Also

sequencePlot

Examples

Run this code

images <- dir(system.file("extdata", package = "GoodFibes"), ".png", full.names = TRUE)

thresholdPlot(images, 1, 0.3)
thresholdPlot(images, 1, 0.4)
thresholdPlot(images, 1, 0.5)

Run the code above in your browser using DataLab