You are here: Start » AVL.NET » Invoke.ThresholdImage_HSx
Transforms each pixel value to minimum or maximum depending on whether it belongs to specified region in the HSV, HSL or HSI color space.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void ThresholdImage_HSx ( Avl.Image inRgbImage, Optional<Avl.Region> inRoi, Avl.HSxColorModel inColorModel, int inBeginHue, int inEndHue, Optional<int> inMinSaturation, Optional<int> inMaxSaturation, Optional<int> inMinBrightness, Optional<int> inMaxBrightness, float inFuzziness, Avl.Image outMonoImage, Diagnostic<Avl.Image> diagHSxImage )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inRgbImage | Avl.Image | Input image in the RGB color space. | ||
![]()  | inRoi | Atl.Optional<Avl.Region> | Region of interest. Default value: atl::NIL. | ||
![]()  | inColorModel | Avl.HSxColorModel | Selected color model. | ||
![]()  | inBeginHue | int | <0, 255> | 0 | Lowest acceptable Hue; if higher than inEndHue, then range wrapping is used. Default value: 0. | 
![]()  | inEndHue | int | <0, 255> | 255 | Highest acceptable Hue, if lower than inBeginHue, then range wrapping is used. Default value: 255. | 
![]()  | inMinSaturation | Atl.Optional<int> | <0, 255> | 128 | Default value: 128. | 
![]()  | inMaxSaturation | Atl.Optional<int> | <0, 255> | ||
![]()  | inMinBrightness | Atl.Optional<int> | <0, 255> | 128 | Minimum brightness; denotes V, L or I, depending on inColorModel. Default value: 128. | 
![]()  | inMaxBrightness | Atl.Optional<int> | <0, 255> | Maximum brightness; denotes V, L or I, depending on inColorModel. Default value: atl::NIL. | |
![]()  | inFuzziness | float | <0.0f, INF> | Tolerance for value ranges that results in intermediate output values. | |
![]()  | outMonoImage | Avl.Image | |||
![]()  | diagHSxImage | Avl.Diagnostic<Avl.Image> | Image in HSx color space. | 



