im2array {imageUtilities}R Documentation

Coerces image to array.

Description

Coerces image to array.

Usage

  im2array(img, transpose = FALSE, ...)

Arguments

img

image to convert

transpose

boolean, whether to transpose the resultant array.

Note that Voir images are of dimension (nx,ny,nchanns), and the returned array will also have dimensions (nx,ny,nchanns).

That is, *the returned array will be transposed*, since usually an image as an array would have dimensions (ny,nx,nchanns), being (rows,columns,channels).

If transpose=TRUE, then the returned array will have dimensions (ny, nx, nchanns).

...

IGNORED

See Also

Other convert: array2im, as.image, imbinary, imchar, imint, is.image


[Package imageUtilities version 1.0.3 Index]