Learn R Programming

Rvision (version 0.6.0)

split: Split an Image into Separate Channels

Description

split returns a list of grayscale images corresponding to each of the channels (blue, green, red, or alpha) of an image.

Usage

split(x)

Arguments

x

An Image object.

Value

A list of single channel (grayscale) Image objects.

See Also

merge, Image

Examples

Run this code
# NOT RUN {
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_chan <- split(balloon)

# }

Run the code above in your browser using DataLab