Description Usage Arguments Value See Also Examples
This function converts a vpImage object to a 2D matrix or a 3D array that can be used in R. Binary, grayscale, and 2D numeric vpImage objects will be converted to 2D matrices. RGB and 3D numeric vpImage objects will be converted to 3D arrays.
1 |
image |
The vpImage object to convert. |
This function returns either a 2D matrix or a 3D arrays depending on the input vpImage object.
1 2 3 4 | filename <- system.file("sample_img/SampleVideo_1080x720_5mb.png", package = "videoplayR")
img <- readImg(filename)
imgMat <- img2r(img)
imgMat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.