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
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)
Output value 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.