sub-.Rcpp_Image: Extract or Replace Parts of an Image

Description Usage Arguments Author(s) See Also Examples

Description

Operators acting on Image objects to extract or replace parts.

Usage

1
2
3
4
5
## S3 method for class 'Rcpp_Image'
x[i = NULL, j = NULL, ..., drop = TRUE]

## S3 replacement method for class 'Rcpp_Image'
x[i = NULL, j = NULL] <- value

Arguments

x

An Image object.

i, j

Indices specifying elements to extract or replace. Indices are numeric vectors which values are coerced to integer as by as.integer (and hence truncated towards zero) or logical vectors which are recycled if necessary to match the dimensions of the image.

...

Ignored.

drop

If TRUE the result is coerced to the lowest possible dimension. This only works for extracting elements, not for the replacement.

value

Single-, three- or four-values vectors representing the gray intensity, BGR or BGRA values (respectively) of the pixels. The vector is recycled if it is shorter than the number of pixels to modify times the number of channels of the image.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, col2bgr

Examples

1
# TODO

neuroconductor-devel-releases/Rvision documentation built on Oct. 27, 2020, 1:16 p.m.