Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Conversions » SplitChannels

SplitChannels


Creates several monochromatic images from individual channels of the input image.

Syntax

C++
C#
 
void avl::SplitChannels
(
	const avl::Image& inImage,
	avl::Image& outMonoImage1,
	avl::Image& outMonoImage2,
	atl::Optional<avl::Image&> outMonoImage3,
	atl::Optional<avl::Image&> outMonoImage4
)

Parameters

Name Type Default Description
inImage const Image& Input image
outMonoImage1 Image& Image of the first channel
outMonoImage2 Image& Image of the second channel
outMonoImage3 Optional<Image&> Image of the third channel (if exists)
outMonoImage4 Optional<Image&> Image of the fourth channel (if exists)

Description

The operation extracts the color channels of inImage as separate monochromatic images. Outputs corresponding to non-existing channels of an image are set to Nil.

Examples

An example image used as inImage.

The resulting outMonoImage1.

The resulting outMonoImage2.

The resulting outMonoImage3.

See Also