Core Optical, Inc.
HistogramProcessor GetBhattacharyyaDistance Method Industrial Strength, Scientific Grade
Returns the Bhattacharyya distance between the two histograms.

Namespace: PrecisionImage.HistogramProcessing
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public double GetBhattacharyyaDistance(
	Histogram histogram1,
	Histogram histogram2
)

Parameters

histogram1
Type: PrecisionImage.HistogramProcessing Histogram
A Histogram object encapsulating the first histogram in the computation.
histogram2
Type: PrecisionImage.HistogramProcessing Histogram
A Histogram object encapsulating the second histogram in the computation.

Return Value

A OnlineDouble type indicating the Bhattacharyya distance between the two histograms.
Exceptions

Remarks

This method computes the Bhattacharyya distance between two histograms and returns the result. The two Histogram arguments must have the same HistogramResolution and HistogramRange otherwise an exception results. The order of histogram1 and histogram2 in the argument list does not matter.

Values close to 0.0 indicate a good match between histograms. Larger values indicate progressively worse matches, with 1.0 indicating complete mismatch.

See Also