ThresholdToRegion_RGB
Creates a region containing image pixels which belongs to the specified range for each individual pixel component.
Applications:Multi-channel thresholding.
Syntax
C++
C#
Python
def ThresholdToRegion_RGB( inRgbImage: Image, outRegion: Region, /, *, 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 ) -> 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) |
![]() |
outRegion | Region | Output region |
Hardware Acceleration
This operation is optimized for SSE41 technology for pixels of type: UINT8.
This operation is optimized for NEON technology for pixels of type: UINT8.
This operation supports automatic parallelization for multicore and multiprocessor systems.


