ThresholdToRegion_HSx


Creates a region containing image pixels which belongs to specified region in HSV, HSL or HSI space.

Applications:Extraction of a region characterized with a specific color.

Syntax

C++
C#
Python
 
def ThresholdToRegion_HSx(
	inRgbImage: Image,
	inBeginHue: int,
	inEndHue: int,
	outRegion: Region,
	/,
	*,
	inRoi: Region | None = None,
	inColorModel: HSxColorModel = HSxColorModel.HSV,
	inMinSaturation: int | None = 128,
	inMaxSaturation: int | None = None,
	inMinBrightness: int | None = 128,
	inMaxBrightness: int | None = None,
	diagHSxImage: Image | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inRgbImage Image
Input value inRoi Region | None None Range of pixels to be processed
Input value inColorModel HSxColorModel HSxColorModel.HSV Selected color model
Input value inBeginHue int 0 - 255 Lowest acceptable Hue; if higher than inEndHue, then range wrapping is used
Input value inEndHue int 0 - 255 Highest acceptable Hue, if lower than inBeginHue, then range wrapping is used
Input value inMinSaturation int | None 0 - 255 128
Input value inMaxSaturation int | None 0 - 255 None
Input value inMinBrightness int | None 0 - 255 128 Minimum brightness; denotes V, L or I, depending on inColorModel
Input value inMaxBrightness int | None 0 - 255 None Maximum brightness; denotes V, L or I, depending on inColorModel
Output value outRegion Region Output region
Diagnostic input diagHSxImage Image | None None Diagnostic image in HSx color space

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.