rufenghaiyun的个人博客分享 http://blog.sciencenet.cn/u/rufenghaiyun

博文

python opencv3.1.0 比较直方图 compareHist函数

已有 7015 次阅读 2016-4-7 11:37 |个人分类:python|系统分类:科研笔记

Python:cv2.compareHist(H1, H2, method)

Parameters:
  • H1 – First compared histogram.

  • H2 – Second compared histogram of the same size as  H1 .

  • method

    Comparison method that could be one of the following:

    • cv2.HISTCMP_CORREL     Correlation

    • cv2.HISTCMP_CHISQR     Chi-Square

    • cv2.HISTCMP_CHISQR_ALT     Alternative Chi-Square

    • cv2.HISTCMP_INTERSECT     Intersection

    • cv2.HISTCMP_BHATTACHARYYA     Bhattacharyya distance

    • cv2.HISTCMP_HELLINGER     Synonym for CV_COMP_BHATTACHARYYA

    • cv2.HISTCMP_KL_DIV     Kullback-Leibler divergence




https://blog.sciencenet.cn/blog-688185-968425.html

上一篇:win7 64位系统matlab运行surfacelet mex编译
下一篇:matlab调用json文件
收藏 IP: 202.97.139.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-28 06:51

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部