Core Optical, Inc.
HistogramProcessor GetCorrelationCoefficient Method Industrial Strength, Scientific Grade
Returns the correlation coefficient between two histograms.

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

public double GetCorrelationCoefficient(
	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 cross-correlation coefficient between the two histograms.
Exceptions

Remarks

This method computes the cross correlation between two histograms and returns the correlation coefficient. 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 1.0 indicate a close match between the two histograms.

See Also