Skip to contents

insertChannel insert a single color channel into the target image.

Usage

insertChannel(image, channel, insert)

Arguments

image

An Image object.

channel

An integer specifying the index of the channel that will be replaced by insert

insert

A single-channel Image object with the same bit depth as image.

Value

The function returns nothing and modifies image in place.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
red <- extractChannel(balloon, 3)
insertChannel(balloon, 1, red)
#> NULL