| HistCompMethods Enumeration |
Comparison methods for cvCompareHist
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public enum HistCompMethods
Public Enumeration HistCompMethods
public enum class HistCompMethods
Members
| Member name | Value | Description |
---|
| Correl | 0 |
Correlation [CV_COMP_CORREL]
|
| Chisqr | 1 |
Chi-Square [CV_COMP_CHISQR]
|
| Intersect | 2 |
Intersection [CV_COMP_INTERSECT]
|
| Bhattacharyya | 3 |
Bhattacharyya distance [CV_COMP_BHATTACHARYYA]
|
| Hellinger | 3 |
Synonym for HISTCMP_BHATTACHARYYA
|
| 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
|
| 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]
|
See Also