extractChannel | R Documentation |
extractChannel
extracts a single color channel from the
source image.
extractChannel(image, channel, target = "new")
image |
An |
channel |
An integer specifying the index of the channel to extract. |
target |
The location where the results should be stored. It can take 2 values:
|
If target="new"
, the function returns a single-channel
Image
object. If target
is an Image
object, the function returns nothing and modifies that Image
object in place.
Simon Garnier, garnier@njit.edu
Image
, split
, merge
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
extractChannel(balloon, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.