Skip to contents

Attempts to turn its argument into a matrix or an array.

Usage

# S3 method for class 'Rcpp_Image'
as.array(x, ...)

Arguments

x

An Image object.

...

Ignored.

Value

A matrix or array of the same dimensions as the Image object.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_mat <- as.matrix(balloon)