MATLAB File Help: cv.compareHist Index
cv.compareHist

Compares two histograms

d = cv.compareHist(H1, H2)
d = cv.compareHist(H1, H2, 'Method', method)

Input

Output

Options

The function compares two dense or two sparse histograms using the specified method.

While the function works well with 1-, 2-, 3-dimensional dense histograms, it may not be suitable for high-dimensional sparse histograms. In such histograms, because of aliasing and sampling problems, the coordinates of non-zero histogram bins can slightly shift. To compare such histograms or more general sparse configurations of weighted points, consider using the cv.EMD function.

Histogram comparison methods:

References

[Puzicha1997]:

Jan Puzicha, Thomas Hofmann, and Joachim M Buhmann. "Non-parametric similarity measures for unsupervised texture segmentation and image retrieval". In Computer Vision and Pattern Recognition, 1997. Proceedings., 1997 IEEE Computer Society Conference on, pages 267-272.

See also