ThresholdToRegion_Relative
Thresholds an image with a different threshold value for each pixel (inBaseImage(x, y) + inValue).
Syntax
C++
C#
Python
def ThresholdToRegion_Relative( inImage: Image, inBaseImage: Image, outRegion: Region, /, *, inRoi: Region | None = None, inMinRelativeValue: float | None = 128.0, inMaxRelativeValue: 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 | |
![]() |
inBaseImage | Image | Pixels of this image are subtracted from inImage before thresholding | ||
![]() |
inMinRelativeValue | float | None | 128.0 | Minimum relative value of a pixel that is considered foreground (Auto = -INF) | |
![]() |
inMaxRelativeValue | float | None | None | Maximum relative 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.
This operation is optimized for NEON technology for pixels of types: 1xUINT8, 3xUINT8.
This operation supports automatic parallelization for multicore and multiprocessor systems.



