select-methods {Cardinal} | R Documentation

## 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

    ## S4 method for signature 'SImageSet'
    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.

### Author(s)

Kylie A. Bemis

### See Also

`image`

[Package Cardinal version 1.12.1 Index]