split: Split an Image into Separate Channels

View source: R/ImageClass.R

splitR Documentation

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.

Note

Color images are usually represented by 3 channels (possibly 4) in the following order: blue (1), green (2), red (3), and possibly alpha (4).

Author(s)

Simon Garnier, garnier@njit.edu

See Also

merge, Image

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_chan <- split(balloon)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.