ThresholdToRegion
Creates a region containing image pixels with values within the specified range.
Applications:Extraction of a region of objects that can be defined by a salient brightness.
Syntax
C++
C#
Python
def ThresholdToRegion( inImage: Image, outRegion: Region, /, *, inRoi: Region | None = None, inMinValue: float | None = 128.0, inMaxValue: float | None = None, inHysteresis: float = 0.0 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inMinValue | float | None | 128.0 | Minimum value of a pixel that is considered foreground (Auto = -INF) | |
![]() |
inMaxValue | float | None | None | Maximum value of a pixel that is considered foreground (Auto = +INF) | |
![]() |
inHysteresis | float | 0.0 - ![]() |
0.0 | Defines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels |
![]() |
outRegion | Region | Output region |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: 1xUINT8, 3xUINT8, 1xINT16, 1xUINT16.
This operation is optimized for NEON technology for pixels of types: 1xUINT8, 3xUINT8, 1xINT16.
This operation supports automatic parallelization for multicore and multiprocessor systems.



