Description Usage Arguments Details Value See Also Examples
This function reads an image file and return a vpImage object that can be
manipulated using the videoplayR
image and video manipulation
toolbox. This function supports the following image formats:
Windows bitmaps - *.bmp, *.dib
JPEG files - *.jpeg, *.jpg, *.jpe
Portable Network Graphics - *.png
Portable image format - *.pbm, *.pgm, *.ppm
TIFF files - *.tiff, *.tif
1 | readImg(filename)
|
filename |
A character string of the path to the image file. |
The vpImage object created by the readImg
function is not a
persistent object, but a pointer to a C++ object that cannot be saved for
reuse in a different session.
This function returns a vpImage object.
1 2 3 | filename <- system.file("sample_img/SampleVideo_1080x720_5mb.png", package = "videoplayR")
img <- readImg(filename)
imshow(img)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.