EasyImage::TwoLevelsMinResidueThreshold

Computes the threshold value used to separate the pixels of an image in two classes.

Namespace: Euresys::Open_eVision

[C++]

float TwoLevelsMinResidueThreshold(
   EBWHistogramVector* histogram,
   EBW8& firstWhitePixelValue,
   float& averageBlack,
   float& averageWhite
)

Parameters

histogram

Histogram of the image.

firstWhitePixelValue

Threshold.

averageBlack

Average value of the black pixels (pixels under the threshold).

averageWhite

Average value of the white pixels (pixels over the threshold).

Remarks

This value is computed using the minimum residue criterion from the histogram of the image. The function returns the minimum residue as per the method. The residue is the Euclidian distance between the source image and the thresholded image.

EasyImage.TwoLevelsMinResidueThreshold

Computes the threshold value used to separate the pixels of an image in two classes.

Namespace: Euresys.Open_eVision

[C#]

float TwoLevelsMinResidueThreshold(
   Euresys.Open_eVision.EBWHistogramVector histogram,
   out Euresys.Open_eVision.EBW8 firstWhitePixelValue,
   out float averageBlack,
   out float averageWhite
)

Parameters

histogram

Histogram of the image.

firstWhitePixelValue

Threshold.

averageBlack

Average value of the black pixels (pixels under the threshold).

averageWhite

Average value of the white pixels (pixels over the threshold).

Remarks

This value is computed using the minimum residue criterion from the histogram of the image. The function returns the minimum residue as per the method. The residue is the Euclidian distance between the source image and the thresholded image.