ThresholdImage_RGB
Transforms each pixel value to minimum or maximum depending on whether it belongs to the specified range for each individual pixel component.
Applications:Multi-channel thresholding.
Syntax
C++
Python
def ThresholdImage_RGB( inRgbImage: Image, outMonoImage: Image, /, *, inRoi: Region | None = None, inMinRed: int | None = 128, inMaxRed: int | None = None, inMinGreen: int | None = 128, inMaxGreen: int | None = None, inMinBlue: int | None = 128, inMaxBlue: int | None = None, inMinAlpha: int | None = None, inMaxAlpha: int | None = None, inFuzziness: float = 0 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRgbImage | Image | Input image, usually in the RGB color space | ||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inMinRed | int | None | 0 - 255 | 128 | Minimum for the first pixel component, usually Red (Auto = -INF) |
![]() |
inMaxRed | int | None | 0 - 255 | None | Maximum for the first pixel component, usually Red (Auto = +INF) |
![]() |
inMinGreen | int | None | 0 - 255 | 128 | Minimum for the second pixel component, usually Green (Auto = -INF) |
![]() |
inMaxGreen | int | None | 0 - 255 | None | Maximum for the second pixel component, usually Green (Auto = +INF) |
![]() |
inMinBlue | int | None | 0 - 255 | 128 | Minimum for the third pixel component, usually Blue (Auto = -INF) |
![]() |
inMaxBlue | int | None | 0 - 255 | None | Maximum for the third pixel component, usually Blue (Auto = +INF) |
![]() |
inMinAlpha | int | None | 0 - 255 | None | Minimum for the fourth pixel component, usually Blue (Auto = -INF) |
![]() |
inMaxAlpha | int | None | 0 - 255 | None | Maximum for the fourth pixel component, usually Blue (Auto = +INF) |
![]() |
inFuzziness | float | 0.0 - ![]() |
0 | Tolerance for the ranges that results in intermediate output values |
![]() |
outMonoImage | Image |
Hardware Acceleration
This operation is optimized for SSSE4 (for inFuzziness = 0) technology.
This operation is optimized for AVX2 (for inFuzziness = 0) technology.
This operation is optimized for NEON technology for pixels of types: 1xUINT8 (for inFuzziness = 0), 3xUINT8 (for inFuzziness = 0).
This operation supports automatic parallelization for multicore and multiprocessor systems.



