Retrieve the dimensions an Image object.
Usage
# S3 method for class 'Rcpp_Image'
dim(x)Arguments
- x
An
Imageobject.
Value
A vector with 3 values corresponding to the number of rows, columns and channels of the image (in this order).
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
dim(balloon)
#> [1] 360 640 3