You are here: Start » AVL.NET » Invoke.ThresholdToRegion_Color
Creates a region containing image pixels with values close to the given color.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void ThresholdToRegion_Color ( Avl.Image inImage, Optional<Avl.Region> inRoi, Avl.Pixel inRgbColor, float inChromaAmount, float inMaxDifference, float inHysteresis, Avl.Region outRegion )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inImage | Avl.Image | Input image. | ||
![]()  | inRoi | Atl.Optional<Avl.Region> | Region of interest. Default value: atl::NIL. | ||
![]()  | inRgbColor | Avl.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 | Avl.Region | Output region. | 


