Learn R Programming

Rvision (version 0.6.0)

Image-class: An S4 Class Containing an OpenCV Image

Description

Image objects are the base objects of the Rvision package. They contain an OpenCV image that can originate from an image file, an array, a video file or a video stream. This image can be manipulated using the functions of Rvision.

Usage

Image

Arguments

Format

An object of class C++Class of length 1.

Slots

depth

A function returning the bit depth of the object.

dim,ncol,nrow,nchan

Functions returning the dimensions of the object.

space

A character string indicating the colorspace of the object.

pget,pset

Functions to get and set single pixel values.

toR

A function to convert the object to an R array.

fromGPU

A function retrieving the object from GPU memory.

toGPU

A function sending the object to GPU memory.

GPU

A boolean indicating whether the object is in GPU memory.

write

A function to write the object to a file.

See Also

image, Video, Stream