split
returns a list of grayscale images corresponding to
each of the channels (blue, green, red, or alpha) of an image.
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
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_chan <- split(balloon)