image_channels: Combine or separate channel images

image_channel_combineR Documentation

Combine or separate channel images

Description

Split image by channel, creating a stack of images or combine a stack of grayscale images into a full color image

Usage

image_channel_combine(image, channel_index = "RGB", canvas = NULL)

image_channel_separate(image)

Arguments

image

image stack (for 'image_channel_combine()') or individual image (for 'image_channel_separate()')

channel_index

character vector with channel names (or abbreviation). Default: 'RGB'. Images in the stack will be interpreted as set of channels in the specified sequence.

canvas

image to be used as canvas to start copying channels into, Default: NULL

Value

single (flat) image with channels copied from the image stack

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

dmi3kno/bunny documentation built on Dec. 7, 2022, 7:22 p.m.