21_ImageArray: Image Arrays

Description Usage Arguments Value See Also Examples

Description

ImageArray objects, where ImageArray is a subclass of ObjectArray, containing RImage (raster image) objects.

NOTE:
INTERNAL STRUCTURE OF OBJECTS IS SUBJECT TO CHANGE.
DO NOT USE SLOTS, DIRECTLY.

Usage

1
2
ImageArray (n)
as.ImageArray (im, ..., n)

Arguments

n

Integer vector, the dimensions.

im

A list of RImage objects.

...

Ignored.

Value

An ImageArray object.

See Also

ObjectArray

RImage

VImage

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library (png)
library (colorspace)

#adapted from png package
im0 <- readPNG (system.file ("img", "Rlogo.png", package="png") )

#multichannel images
im <- ImageArray (2)
im [[1]] <- as.MImage (im0)
im [[2]] <- as.MImage (im0, storage="HCL")

decomp.plot (im)

vectools documentation built on June 7, 2021, 9:08 a.m.