Attempts to turn its argument into a matrix or an array.
Usage
# S3 method for class 'Rcpp_Image'
as.array(x, ...)Arguments
- x
An
Imageobject.- ...
Ignored.
Value
A matrix or array of the same dimensions as the Image
object.
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_mat <- as.matrix(balloon)