EasyImage::IsodataThresholdBW16

Computes a suitable threshold value for a histogram.

Namespace: Euresys::Open_eVision

[C++]

EBW16 IsodataThresholdBW16(
   EBWHistogramVector* histogram,
   OEV_UINT32 from,
   OEV_UINT32 to
)

Parameters

histogram

Pointer to a vector containing an image histogram.

from

Lower bound of the useful gray-level interval (by default, 0).

to

Upper bound of the useful gray-level interval (by default, 65535).

Remarks

The "isodata" rule is used: if one computes the average gray level of pixels below the threshold and the average gray level of pixels above the threshold, the threshold lies exactly halfway between them. Optionally, the threshold selection can be restricted to a range of gray-level values.
Returns the threshold.

EasyImage.IsodataThresholdBW16

Computes a suitable threshold value for a histogram.

Namespace: Euresys.Open_eVision

[C#]

Euresys.Open_eVision.EBW16 IsodataThresholdBW16(
   Euresys.Open_eVision.EBWHistogramVector histogram,
   uint from,
   uint to
)

Parameters

histogram

Pointer to a vector containing an image histogram.

from

Lower bound of the useful gray-level interval (by default, 0).

to

Upper bound of the useful gray-level interval (by default, 65535).

Remarks

The "isodata" rule is used: if one computes the average gray level of pixels below the threshold and the average gray level of pixels above the threshold, the threshold lies exactly halfway between them. Optionally, the threshold selection can be restricted to a range of gray-level values.
Returns the threshold.