insertChannel: Insert Single Channel into Image

View source: R/ImageClass.R

insertChannelR Documentation

Insert Single Channel into Image

Description

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.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, split, merge

Examples

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


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.