直方图对比
代码说明:
实现两个图像的直方图对比,采用四种方式计算基准图与目标图的相似性,其中最常用的就是巴氏距离,调用opencv的直方图对比类,直接实现计算,注意得到的巴氏距离的值越小,表示基准图与目标图的相似度越高,当然还有其他的三种方式,这个在代码里面修改一下名称就可以了。Histogram contrast achieve two images, the use of four ways to calculate the reference map and target map similarity, one of the most commonly used is pasteurized distance calls opencv histogram comparison class, directly implement calculations, pay attention to get Pap distance the smaller the value, the reference chart indicates the similarity with the target figure is higher, of course, there are other three ways, this change in the code inside look at the name on it.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!