You are here: Start » AVL.NET » Function Reference » Image » Image Conversions » AVL.MergeChannels

AVL.MergeChannels

Creates a multichannel image from several monochromatic ones.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void MergeChannels
(
	AvlNet.Image inMonoImage1,
	AvlNet.Image inMonoImage2,
	NullableRef<AvlNet.Image> inMonoImage3,
	NullableRef<AvlNet.Image> inMonoImage4,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inMonoImage1AvlNet.ImageAn image that becomes the first channel.
inMonoImage2AvlNet.ImageAn image that becomes the second channel.
inMonoImage3AvlNet.NullableRef<AvlNet.Image>An image that becomes the third channel. Default value: atl::NIL.
inMonoImage4AvlNet.NullableRef<AvlNet.Image>An image that becomes the fourth channel. Default value: atl::NIL.
outImageAvlNet.ImageOutput image.

Description

The operation combines the given monochromatic images to obtain a color image, each of its channels equal to the only channel of the corresponding input image.

Examples

An example image used as inMonoImage1.

An example image used as inMonoImage2.

An example image used as inMonoImage3.

The resulting outImage.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

List of possible exceptions:

Error type Description
DomainError Image sizes are not equal in MergeChannels.
DomainError Input image is not monochromatic in MergeChannels.
DomainError Pixel types of the input images are not the same in MergeChannels.
DomainError Not supported inMonoImage1 pixel format in MergeChannels. Supported formats: 1xUInt8, 1xInt8, 1xUInt16, 1xInt16, 1xInt32, 1xReal.
DomainError Not supported inMonoImage2 pixel format in MergeChannels. Supported formats: 1xUInt8, 1xInt8, 1xUInt16, 1xInt16, 1xInt32, 1xReal.

Function Overrides

See also