EasyImage::IsodataThreshold
Computes a suitable threshold value for a histogram.
Namespace: Euresys::Open_eVision
[C++]
EBW8 IsodataThreshold(
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,
to
Upper bound of the useful gray-level interval (by default,
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.
It is possible that, in the automatic or relative thresholding modes, the computed threshold exceeds the dynamic range of the return type. In this case, the value is clipped to the maximum value that is representable in the return type.
EasyImage.IsodataThreshold
Computes a suitable threshold value for a histogram.
Namespace: Euresys.Open_eVision
[C#]
Euresys.Open_eVision.EBW8 IsodataThreshold(
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,
to
Upper bound of the useful gray-level interval (by default,
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.
It is possible that, in the automatic or relative thresholding modes, the computed threshold exceeds the dynamic range of the return type. In this case, the value is clipped to the maximum value that is representable in the return type.