You are here: Start » FIL.NET » Function Reference » Image » Image Conversions » FIL.SelectChannel
Creates an image from a single channel of the input image.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void SelectChannel ( FilNet.Image inImage, NullableRef<FilNet.Region> inRoi, int inChannelIndex, FilNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inRoi | FilNet.NullableRef<FilNet.Region> | Range of pixels to be processed. Default value: ftl::NIL. | ||
![]() | inChannelIndex | int | <0, 3> | ||
![]() | outImage | FilNet.Image | Output image. |
Description
The operation extracts the selected color channel of inImage.
Examples
![]() An example image used as inImage. |
![]() The resulting outImage when inChannelIndex = 0. |
![]() The resulting outImage when inChannelIndex = 1. |
![]() The resulting outImage when inChannelIndex = 2. |
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 | Channel index out of range in SelectChannel. |
DomainError | Region exceeds an input image in SelectChannel. |