You are here: Start » AVL.NET » AVL.SelectThresholdValue(AvlNet.Image, AvlNet.ThresholdSelectionMethod, float, float[], float[], float[])

AVL.SelectThresholdValue(AvlNet.Image, AvlNet.ThresholdSelectionMethod, float, float[], float[], float[])

Selects best threshold value using the image histogram.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void SelectThresholdValue(
	AvlNet.Image inImage,
	AvlNet.ThresholdSelectionMethod inMethod,
	out float outThresholdValue,
	out float[] diagThresholdRatings,
	out float[] diagBackgroundPixelsFraction,
	out float[] diagForegroundPixelsFraction
)

Parameters

inImage
Type: AvlNet.Image
Input image
inMethod
Type: AvlNet.ThresholdSelectionMethod
Method used to select the best threshold
outThresholdValue
Type: System.Single
Best threshold separating background pixels from foreground pixels
diagThresholdRatings
Type: System.Single
Contains ratings gained if that threshold would be chosen
diagBackgroundPixelsFraction
Type: System.Single
Fraction of pixels that are darker than the index value
diagForegroundPixelsFraction
Type: System.Single
Fraction of pixels that are brighter than the index value

See also