as.array.Rcpp_Image: Convert Image to Array or Matrix

View source: R/ImageClass.R

as.array.Rcpp_ImageR Documentation

Convert Image to Array or Matrix

Description

Attempts to turn its argument into a matrix or an array.

Usage

## S3 method for class 'Rcpp_Image'
as.array(x, ...)

Arguments

x

An Image object.

...

Ignored.

Value

A matrix or array of the same dimensions as the Image object.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, matrix, array

Examples

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


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