Click or drag to resize

HistCompMethods Enumeration

Comparison methods for cvCompareHist

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public enum HistCompMethods
Members
  Member nameValueDescription
Correl0 Correlation [CV_COMP_CORREL]
Chisqr1 Chi-Square [CV_COMP_CHISQR]
Intersect2 Intersection [CV_COMP_INTERSECT]
Bhattacharyya3 Bhattacharyya distance [CV_COMP_BHATTACHARYYA]
Hellinger3 Synonym for HISTCMP_BHATTACHARYYA
ChisqrAlt4 Alternative Chi-Square \f[d(H_1,H_2) = 2 * \sum _I \frac{\left(H_1(I)-H_2(I)\right)^2}{H_1(I)+H_2(I)}\f] This alternative formula is regularly used for texture comparison. See e.g. @cite Puzicha1997
KLDiv5 Kullback-Leibler divergence \f[d(H_1,H_2) = \sum _I H_1(I) \log \left(\frac{H_1(I)}{H_2(I)}\right)\f]
See Also