nrow.Rcpp_Image: The Number of Rows/Columns/Channels of an Image

View source: R/ImageClass.R

nrow.Rcpp_ImageR Documentation

The Number of Rows/Columns/Channels of an Image

Description

nrow, ncol and nchan return the number of rows, columns or channels present in an Image object.

Usage

nrow.Rcpp_Image(x)
ncol.Rcpp_Image(x)
nchan(x)

Arguments

x

An Image object.

Value

A numeric value.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

dim which returns all dimensions.

Examples

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


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