You are here: Start » AVL.NET » Invoke.ThresholdImage_RGB
Transforms each pixel value to minimum or maximum depending on whether it belongs to the specified range for each individual pixel component.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void ThresholdImage_RGB ( Avl.Image inRgbImage, Optional<Avl.Region> inRoi, Optional<int> inMinRed, Optional<int> inMaxRed, Optional<int> inMinGreen, Optional<int> inMaxGreen, Optional<int> inMinBlue, Optional<int> inMaxBlue, Optional<int> inMinAlpha, Optional<int> inMaxAlpha, float inFuzziness, Avl.Image outMonoImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRgbImage | Avl.Image | Input image, usually in the RGB color space. | ||
![]() | inRoi | Atl.Optional<Avl.Region> | Region of interest. Default value: atl::NIL. | ||
![]() | inMinRed | Atl.Optional<int> | <0, 255> | 128 | Minimum for the first pixel component, usually Red (Auto = -INF). Default value: 128. |
![]() | inMaxRed | Atl.Optional<int> | <0, 255> | Maximum for the first pixel component, usually Red (Auto = +INF). Default value: atl::NIL. | |
![]() | inMinGreen | Atl.Optional<int> | <0, 255> | 128 | Minimum for the second pixel component, usually Green (Auto = -INF). Default value: 128. |
![]() | inMaxGreen | Atl.Optional<int> | <0, 255> | Maximum for the second pixel component, usually Green (Auto = +INF). Default value: atl::NIL. | |
![]() | inMinBlue | Atl.Optional<int> | <0, 255> | 128 | Minimum for the third pixel component, usually Blue (Auto = -INF). Default value: 128. |
![]() | inMaxBlue | Atl.Optional<int> | <0, 255> | Maximum for the third pixel component, usually Blue (Auto = +INF). Default value: atl::NIL. | |
![]() | inMinAlpha | Atl.Optional<int> | <0, 255> | Minimum for the fourth pixel component, usually Blue (Auto = -INF). Default value: atl::NIL. | |
![]() | inMaxAlpha | Atl.Optional<int> | <0, 255> | Maximum for the fourth pixel component, usually Blue (Auto = +INF). Default value: atl::NIL. | |
![]() | inFuzziness | float | <0.0f, INF> | Tolerance for the ranges that results in intermediate output values. | |
![]() | outMonoImage | Avl.Image |