Skip to contents

Retrieve the dimensions an Image object.

Usage

# S3 method for class 'Rcpp_Image'
dim(x)

Arguments

x

An Image object.

Value

A vector with 3 values corresponding to the number of rows, columns and channels of the image (in this order).

See also

Author

Simon Garnier, garnier@njit.edu

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
dim(balloon)
#> [1] 360 640   3