ThresholdImage_Multirange
Transforms each pixel value to maximum or minimum depending on whether they belong to the specified range.
Applications:Image binarization when the illumination is constant and uniform.
Syntax
C++
C#
Python
def ThresholdImage_Multirange( inImage: Image, outImage: Image, /, *, inRoi: Region | None = None, inMinValue1: float | None = 1.0, inMaxValue1: float | None = None, inMinValue2: float | None = 64.0, inMaxValue2: float | None = None, inMinValue3: float | None = 128.0, inMaxValue3: float | None = None, inMinValue4: float | None = 192.0, inMaxValue4: float | None = None ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region | None | None | Region of interest |
![]() |
inMinValue1 | float | None | 1.0 | Minimum value of a pixel that is considered foreground (Auto = -INF) |
![]() |
inMaxValue1 | float | None | None | Maximum value of a pixel that is considered foreground (Auto = +INF) |
![]() |
inMinValue2 | float | None | 64.0 | Minimum value of a pixel that is considered foreground (Auto = -INF) |
![]() |
inMaxValue2 | float | None | None | Maximum value of a pixel that is considered foreground (Auto = +INF) |
![]() |
inMinValue3 | float | None | 128.0 | Minimum value of a pixel that is considered foreground (Auto = -INF) |
![]() |
inMaxValue3 | float | None | None | Maximum value of a pixel that is considered foreground (Auto = +INF) |
![]() |
inMinValue4 | float | None | 192.0 | Minimum value of a pixel that is considered foreground (Auto = -INF) |
![]() |
inMaxValue4 | float | None | None | Maximum value of a pixel that is considered foreground (Auto = +INF) |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: 1xUINT8 (for inFuzziness = 0).
This operation is optimized for AVX2 technology for pixels of types: 1xUINT8 (for inFuzziness = 0) PARALLEL.


