Learn R Programming

Cardinal (version 1.4.0)

select-methods: Select Regions of an Imaging Dataset

Description

Manually select regions-of-interest or pixels on an imaging dataset. This uses the built-in locator function. The method has the same form as the image method for plotting imaging datasets.

Usage

"select"(x, formula = ~ x * y, mode = c("region", "pixel"), ..., main, subset = TRUE, lattice = FALSE)

Arguments

x
An imaging dataset.
formula
Passed to image.
mode
What kind of selection to perform: 'region' to select a region-of-interest, or 'pixel' to select individual pixels.
...
Addtional arguments to be passed to image.
main
Passed to image.
subset
Passed to image.
lattice
Must be false.

Value

A logical vector of length equal to the number of pixels.

See Also

image