writeImg: Save image object to file

Description Usage Arguments Value See Also Examples

Description

This function write a vpImage object to an image file on the computer's drive. This function can save image files in the following formats:

The image format is chosen based on the filename extension.

Usage

1
writeImg(filename, image)

Arguments

filename

A character string of the path to the image file.

image

The vpImage object to save.

Value

This function does not return anythin.

See Also

readImg, vpImage

Examples

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

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