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