Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Conversions » MergeChannels
Creates a multichannel image from several monochromatic ones.
Syntax
C++
C#
void avl::MergeChannels ( const avl::Image& inMonoImage1, const avl::Image& inMonoImage2, atl::Optional<const avl::Image&> inMonoImage3, atl::Optional<const avl::Image&> inMonoImage4, avl::Image& outImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inMonoImage1 | const Image& | An image that becomes the first channel | ||
inMonoImage2 | const Image& | An image that becomes the second channel | ||
inMonoImage3 | Optional<const Image&> | NIL | An image that becomes the third channel | |
inMonoImage4 | Optional<const Image&> | NIL | An image that becomes the fourth channel | |
outImage | Image& | Output 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
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
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. |