split | R Documentation |
split
returns a list of grayscale images corresponding to
each of the channels (blue, green, red, or alpha) of an image.
split(x)
x |
An |
A list of single channel (grayscale) Image
objects.
Color images are usually represented by 3 channels (possibly 4) in the following order: blue (1), green (2), red (3), and possibly alpha (4).
Simon Garnier, garnier@njit.edu
merge
, Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_chan <- split(balloon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.