You are here: Start » FIL.NET » Function Reference » Image » Image Conversions » FIL.AverageChannels_121
Creates a monochromatic image by averaging the input image channels.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void AverageChannels_121 ( FilNet.Image inImage, NullableRef<FilNet.Region> inRoi, 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. | ||
![]() | outImage | FilNet.Image | Output image. |
Description
The operation computes the monochromatic average of inImage color channels. Average being computed at each pixel is a mean with weight (1, 2, 1).
Hardware Acceleration
This operation is optimized for SSSE3 technology for pixels of type: 3xUINT8.
This operation is optimized for AVX2 technology for pixels of type: 3xUINT8.
This operation is optimized for NEON technology for pixels of type: 3xUINT8.
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 | Region exceeds an input image in AverageChannels_121. |
DomainError | Not supported inImage pixel format in AverageChannels_121. Supported formats: 3xUInt8, 3xInt8, 3xUInt16, 3xInt16, 3xInt32, 3xReal. |