Table of Contents

Enum HistCompMethods

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Comparison methods for cvCompareHist

[SuppressMessage("Microsoft.Design", "CA1717: Only FlagsAttribute enums should have plural names")]
public enum HistCompMethods

Fields

Bhattacharyya = 3

Bhattacharyya distance [CV_COMP_BHATTACHARYYA]

Chisqr = 1

Chi-Square [CV_COMP_CHISQR]

ChisqrAlt = 4

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

Correl = 0

Correlation [CV_COMP_CORREL]

Hellinger = 3

Synonym for HISTCMP_BHATTACHARYYA

Intersect = 2

Intersection [CV_COMP_INTERSECT]

KLDiv = 5

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]

Remarks