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

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
inImageFil.ImageInput image.
inRoiFtl.Optional<Fil.Region>Range of pixels to be processed. Default value: ftl::NIL.
inMethodFil.ThresholdSelectionMethodMethod used to select the best threshold.
outThresholdValuefloatBest threshold separating background pixels from foreground pixels.
diagThresholdRatingsFil.Diagnostic<System.Collections.Generic.List<float>>Contains ratings gained if that threshold would be chosen.
diagBackgroundPixelsFractionFil.Diagnostic<System.Collections.Generic.List<float>>Fraction of pixels that are darker than the index value.
diagForegroundPixelsFractionFil.Diagnostic<System.Collections.Generic.List<float>>Fraction of pixels that are brighter than the index value.

See also