Learn R Programming

videoplayR (version 0.3.1)

imshow: Display vpImage object

Description

This function opens a graphics device and display the image contained in a vpImage object.

Usage

imshow(image)

Arguments

image
A vpImage object to display.

Value

This function does not return anything.

Details

imshow opens a regular graphics device, meaning that it is possible to overlay lines and points over the image, like with any regular plot. The bottom left corner of the image is set at {1,1}.

If the type of the vpImage object is "numeric", then its values are rescaled between 0 and 1, with 0 representing the minimum value of the original image and 1 representing its maximum.

See Also

vpImage

Examples

Run this code
filename <- system.file("sample_img/SampleVideo_1080x720_5mb.png", package = "videoplayR")
img <- readImg(filename)
imshow(img)

Run the code above in your browser using DataLab