selectROI-methods {Cardinal}R Documentation

Select regions-of-interest 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

## S4 method for signature 'SparseImagingExperiment'
selectROI(object, ..., mode = c("region", "pixels"))

## S4 method for signature 'SImageSet'
selectROI(object, formula = ~ x * y,
    mode = c("region", "pixels"),
    ...,
    main,
    subset = TRUE,
    lattice = FALSE)

Arguments

object

An imaging dataset.

formula

Passed to image.

mode

What kind of selection to perform: 'region' to select a region-of-interest, or 'pixels' 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.

Author(s)

Kylie A. Bemis

See Also

image


[Package Cardinal version 2.0.4 Index]