You are here: Start » AVL.NET » Invoke.SelectThresholdValue

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
inImageAvl.ImageInput image.
inRoiAtl.Optional<Avl.Region>Range of pixels to be processed. Default value: atl::NIL.
inMethodAvl.ThresholdSelectionMethodMethod used to select the best threshold.
outThresholdValuefloatBest threshold separating background pixels from foreground pixels.
diagThresholdRatingsAvl.Diagnostic<System.Collections.Generic.List<float>>Contains ratings gained if that threshold would be chosen.
diagBackgroundPixelsFractionAvl.Diagnostic<System.Collections.Generic.List<float>>Fraction of pixels that are darker than the index value.
diagForegroundPixelsFractionAvl.Diagnostic<System.Collections.Generic.List<float>>Fraction of pixels that are brighter than the index value.

See also