dim.Rcpp_Image: Dimensions of an Image

View source: R/ImageClass.R

dim.Rcpp_ImageR Documentation

Dimensions of an Image

Description

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).

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, image

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
dim(balloon)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.