Learn R Programming

videoplayR (version 0.3.1)

vpImage: Image object.

Description

A vpImage object is an R container for an OpenCV image. vpImage objects can be generated by the following videoplayR functions: readImg, getFrame, r2img. They can be displayed using the imshow function.

Arguments

Format

A vpImage object contains two fields:
  • $type: the type of image stored in the object. There are 4 types of image types:
    • binary: 1-channel image with integer pixel values of 0 or 1 only.
    • grayscale: 1-channel image with integer pixel values in [0, 255].
    • rgb: 3-channels image with integer pixel values in [0, 255].
    • numeric: 1- or 3-channels image with unconstrained pixel values.
  • "dim": the dimensions in pixels (width x height x depth) of the image.

Details

A vpImage object is not a persistent object, but a pointer to a C++ object that cannot be saved for reuse in a different session.

See Also

readImg, getFrame, imshow