You are here: Start » AVL.NET » AVL.MergeChannels(AvlNet.Image, AvlNet.Image, AvlNet.Image, AvlNet.Image, AvlNet.Image)
AVL.MergeChannels(AvlNet.Image, AvlNet.Image, AvlNet.Image, AvlNet.Image, AvlNet.Image)
Creates a multichannel image from several monochromatic ones.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void MergeChannels( AvlNet.Image inMonoImage1, AvlNet.Image inMonoImage2, AvlNet.Image inMonoImage3, AvlNet.Image inMonoImage4, out AvlNet.Image outImage )
Parameters
- inMonoImage1
- Type: AvlNet.Image
An image that becomes the first channel - inMonoImage2
- Type: AvlNet.Image
An image that becomes the second channel - inMonoImage3
- Type: AvlNet.Image
An image that becomes the third channel, or null. - inMonoImage4
- Type: AvlNet.Image
An image that becomes the fourth channel, or null. - outImage
- Type: AvlNet.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
![]() 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
| 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. |




