You are here: Start » FIL.NET » Function Reference » Image » Image Thresholding » FIL.ThresholdToRegion_Color
Creates a region containing image pixels with values close to the given color.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void ThresholdToRegion_Color ( FilNet.Image inImage, FilNet.Pixel inRgbColor, float inChromaAmount, float inMaxDifference, float inHysteresis, FilNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inRgbColor | FilNet.Pixel | Color to compare the image to. | ||
![]() | inChromaAmount | float | <0.0f, 1.0f> | 0.7f | Proportion of chromatic information in distance computation. Default value: 0.7f. |
![]() | inMaxDifference | float | <0.0f, INF> | 5.0f | Maximum difference between image pixel and model color. Default value: 5.0f. |
![]() | inHysteresis | float | <0.0f, INF> | 0.0f | Defines how much the difference criterium is lowered for pixels neighboring with other foreground pixels. Default value: 0.0f. |
![]() | outRegion | FilNet.Region | Output region. |
Examples
![]() |
![]() |
ThresholdToRegion_Color performed on a sample image with inRgbColor = (192, 34, 22), inChromaAmount = 1.0, inMaxDifference = 48.
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: 1xUINT8, 3xUINT8.
This operation is optimized for NEON technology for pixels of types: 1xUINT8, 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 ThresholdToRegion_Color. |
DomainError | Not supported inImage pixel format in ThresholdToRegion_Color. Supported formats: 1xUInt8, 2xUInt8, 3xUInt8, 4xUInt8. |