thresholdPlot {GoodFibes}R Documentation

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)

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.

Value

Returns a plot

Author(s)

J. Arbour

References

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

See Also

sequencePlot

Examples


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)


[Package GoodFibes version 0.1.10 Index]