merge | R Documentation |
merge
returns an image from the combination of grayscale
images corresponding to single channels (green, blue, red, or alpha).
merge(x, target = "new")
x |
A list of single channel (grayscale) |
target |
The location where the results should be stored. It can take 2 values:
|
If target="new"
, the function returns an Image
object. If target
is an Image
object, the function
returns nothing and modifies that Image
object in place.
Color images are usually represented by 3 channels (possibly 4) in the following order: green (1), blue (2), red (3), and possibly alpha (4).
Simon Garnier, garnier@njit.edu
split
, Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_chan <- split(balloon)
balloon_merged <- merge(balloon_chan)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.