opencv知识积累


1.OpenCV 3计算机视觉:Python语言实现
https://github.com/techfort/pycv
2.OpenCV3编程入门



opencv
均值模糊:一般用来处理图像的随机噪声 中值模糊:一般用来处理图像的椒盐噪声 自定义模糊:对图像进行锐化之类的操作 高斯模糊: 减少图像层次和深度 hist1 = create_rgb_hist(image1)"""创建rgb 三通道直方图""" hist2 = create_rgb_hist(image2)"""创建rgb 三通道直方图""" # 巴氏距离比较,距离越小越相似 match1 = cv.compareHist(hist1, hist2, cv.HISTCMP_BHATTACHARYYA) # 相关性比较,相关性越大越相似 match2 = cv.compareHist(hist1, hist2, cv.HISTCMP_CORREL) # 卡方比较,越大越不相似 match3 = cv.compareHist(hist1, hist2, cv.HISTCMP_CHISQR) print("巴氏距离:%s 相关性:%s 卡方:%s" % (match1, match2, match3))
原文地址:https://www.cnblogs.com/cekong/p/9968815.html