Learn R Programming

Rvision (version 0.6.0)

dim.Rcpp_Image: Dimensions of an Image

Description

Retrieve the dimensions an Image object.

Usage

# S3 method for 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

Image, image

Examples

Run this code
# NOT RUN {
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
dim(balloon)

# }

Run the code above in your browser using DataLab