You are here: Start » AVL.NET » AVS.SelectThresholdValue Method

AVS.SelectThresholdValue Method

Selects best threshold value using the image histogram.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void SelectThresholdValue
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	AvlNet.ThresholdSelectionMethod inMethod,
	out float outThresholdValue,
	IList<float> diagThresholdRatings,
	IList<float> diagBackgroundPixelsFraction,
	IList<float> diagForegroundPixelsFraction
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.NullableRef<AvlNet.Region>Range of pixels to be processed. Default value: atl::NIL.
inMethodAvlNet.ThresholdSelectionMethodMethod used to select the best threshold.
outThresholdValuefloatBest threshold separating background pixels from foreground pixels.
diagThresholdRatingsSystem.Collections.Generic.IList<float>Contains ratings gained if that threshold would be chosen.
diagBackgroundPixelsFractionSystem.Collections.Generic.IList<float>Fraction of pixels that are darker than the index value.
diagForegroundPixelsFractionSystem.Collections.Generic.IList<float>Fraction of pixels that are brighter than the index value.

Function Overrides

See also