as.array.Rcpp_Image | R Documentation |
Attempts to turn its argument into a matrix or an array.
## S3 method for class 'Rcpp_Image'
as.array(x, ...)
x |
An |
... |
Ignored. |
A matrix or array of the same dimensions as the Image
object.
Simon Garnier, garnier@njit.edu
Image
, matrix
, array
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_mat <- as.matrix(balloon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.