Learn R Programming

Rvision (version 0.3.3)

changeColorSpace: Convert image between colorspaces

Description

This function takes an Image object and converts it to another colorspace (e.g BGR to grayscale).

Usage

changeColorSpace(image, colorspace)

Arguments

image

An Image object.

colorspace

A string corresponding to the colorspace the image should be converted to. Options are "BGR" (Blue Green Red image), "BGRA" (BGR image with Alpha channel), and "GRAY" (grayscale image).

Value

An Image object.

See Also

Image

Examples

Run this code
# NOT RUN {
# TODO

# }

Run the code above in your browser using DataLab