You are here: Start » FIL.NET » Invoke.SelectThresholdValue
Selects best threshold value using the image histogram.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void SelectThresholdValue ( Fil.Image inImage, Optional<Fil.Region> inRoi, Fil.ThresholdSelectionMethod inMethod, out float outThresholdValue, Diagnostic<List<float>> diagThresholdRatings, Diagnostic<List<float>> diagBackgroundPixelsFraction, Diagnostic<List<float>> diagForegroundPixelsFraction )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | Fil.Image | Input image. | ||
![]() | inRoi | Ftl.Optional<Fil.Region> | Range of pixels to be processed. Default value: ftl::NIL. | ||
![]() | inMethod | Fil.ThresholdSelectionMethod | Method used to select the best threshold. | ||
![]() | outThresholdValue | float | Best threshold separating background pixels from foreground pixels. | ||
![]() | diagThresholdRatings | Fil.Diagnostic<System.Collections.Generic.List<float>> | Contains ratings gained if that threshold would be chosen. | ||
![]() | diagBackgroundPixelsFraction | Fil.Diagnostic<System.Collections.Generic.List<float>> | Fraction of pixels that are darker than the index value. | ||
![]() | diagForegroundPixelsFraction | Fil.Diagnostic<System.Collections.Generic.List<float>> | Fraction of pixels that are brighter than the index value. |