readImg: Load image file in memory

Description Usage Arguments Details Value See Also Examples

Description

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:

Usage

1
readImg(filename)

Arguments

filename

A character string of the path to the image file.

Details

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.

Value

This function returns a vpImage object.

See Also

writeImg, vpImage

Examples

1
2
3
filename <- system.file("sample_img/SampleVideo_1080x720_5mb.png", package = "videoplayR")
img <- readImg(filename)
imshow(img)

swarm-lab/videoplayR documentation built on May 30, 2019, 9:36 p.m.