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 | |
|---|---|---|---|---|---|
![]() |
inRgbImage | Image | |||
![]() |
inRoi | Region | None | None | Range of pixels to be processed | |
![]() |
inColorModel | HSxColorModel | HSxColorModel.HSV | Selected color model | |
![]() |
inBeginHue | int | 0 - 255 | Lowest acceptable Hue; if higher than inEndHue, then range wrapping is used | |
![]() |
inEndHue | int | 0 - 255 | Highest acceptable Hue, if lower than inBeginHue, then range wrapping is used | |
![]() |
inMinSaturation | int | None | 0 - 255 | 128 | |
![]() |
inMaxSaturation | int | None | 0 - 255 | None | |
![]() |
inMinBrightness | int | None | 0 - 255 | 128 | Minimum brightness; denotes V, L or I, depending on inColorModel |
![]() |
inMaxBrightness | int | None | 0 - 255 | None | Maximum brightness; denotes V, L or I, depending on inColorModel |
![]() |
outRegion | Region | Output region | ||
![]() |
diagHSxImage | Image | None | None | Diagnostic image in HSx color space |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



