Operators acting on Image objects to extract or replace parts.

# S3 method for Rcpp_Image
[(x, i = NULL, j = NULL, ..., drop = TRUE)

# S3 method for 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.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

# TODO