insertChannel | R Documentation |
insertChannel
insert a single color channel into the
target image.
insertChannel(image, channel, insert)
image |
An |
channel |
An integer specifying the index of the channel that will be
replaced by |
insert |
A single-channel |
The function returns nothing and modifies image
in place.
Simon Garnier, garnier@njit.edu
Image
, split
, merge
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
red <- extractChannel(balloon, 3)
insertChannel(balloon, 1, red)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.