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
Input value inRgbImage Image Input image, usually in the RGB color space
Input value inRoi Region | None None Region of interest
Input value inMinRed int | None 0 - 255 128 Minimum for the first pixel component, usually Red (Auto = -INF)
Input value inMaxRed int | None 0 - 255 None Maximum for the first pixel component, usually Red (Auto = +INF)
Input value inMinGreen int | None 0 - 255 128 Minimum for the second pixel component, usually Green (Auto = -INF)
Input value inMaxGreen int | None 0 - 255 None Maximum for the second pixel component, usually Green (Auto = +INF)
Input value inMinBlue int | None 0 - 255 128 Minimum for the third pixel component, usually Blue (Auto = -INF)
Input value inMaxBlue int | None 0 - 255 None Maximum for the third pixel component, usually Blue (Auto = +INF)
Input value inMinAlpha int | None 0 - 255 None Minimum for the fourth pixel component, usually Blue (Auto = -INF)
Input value inMaxAlpha int | None 0 - 255 None Maximum for the fourth pixel component, usually Blue (Auto = +INF)
Input value inFuzziness float 0.0 - 0 Tolerance for the ranges that results in intermediate output values
Output value 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.