You are here: Start » FIL.NET » Invoke.ThresholdToRegion_Relative_DarkBright
Thresholds an image using two relative thresholds and produces two regions (Dark and Bright) in a single image pass.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void ThresholdToRegion_Relative_DarkBright ( Fil.Image inImage, Optional<Fil.Region> inRoi, Fil.Image inBaseImage, float inDarkThreshold, float inBrightThreshold, float inHysteresis, Fil.Region outDarkRegion, Fil.Region outBrightRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Input image. | ||
![]() | inRoi | Ftl.Optional<Fil.Region> | Region of interest. Default value: ftl::NIL. | ||
![]() | inBaseImage | Fil.Image | Pixels of this image are subtracted from inImage before thresholding. | ||
![]() | inDarkThreshold | float | 64.0f | Maximum relative value of a pixel that is considered DarkRegion. Default value: 64.0f. | |
![]() | inBrightThreshold | float | 192.0f | Minimum relative value of a pixel that is considered BrightRegion. Default value: 192.0f. | |
![]() | inHysteresis | float | <0.0f, INF> | 0.0f | Defines how much the threshold criteria are lowered for pixels neighboring with other foreground pixels. Default value: 0.0f. |
![]() | outDarkRegion | Fil.Region | Region of pixels equal or lower than inDarkThreshold. | ||
![]() | outBrightRegion | Fil.Region | Region of pixels equal or greater than inBrightThreshold. |