Show / Hide Table of Contents

Enum HistCompMethods

Comparison methods for cvCompareHist

Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public enum HistCompMethods
Remarks

https://github.com/opencv/opencv/blob/d3bc563c6e01c2bc153f23e7393322a95c7d3974/modules/imgproc/include/opencv2/imgproc.hpp#L497

Fields

Name Description
Bhattacharyya

Bhattacharyya distance [CV_COMP_BHATTACHARYYA]

Chisqr

Chi-Square [CV_COMP_CHISQR]

ChisqrAlt

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

Correlation [CV_COMP_CORREL]

Hellinger

Synonym for HISTCMP_BHATTACHARYYA

Intersect

Intersection [CV_COMP_INTERSECT]

KLDiv

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]

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX