提出了一种自适应权值的色彩相似性度量方法,有效地抑制了噪声对立体匹配的影响,提出以立体像对左、右图像间的颜色直方图相关系数为标准来调整权值的方法,并通过实验推导出具体的计算公式。对以灰度变化为基准的自适应窗选择方法进行改进,在边界提取过程中加入了彩色信息,使得提取的物体轮廓更为完整;用“米”字型窗口来代替原来的矩形窗口也使得窗口增长更为灵活,获得的匹配更为准确。实验结果表明,本文算法能够生成精确度较高的视差图,是一种较好的立体匹配算法。
A novel correlation measurement of color image has been proposed. An adaptive weight,which is relative to the col or histogram correlation of stereo image pair,has been used to find the disparity,and the relationship between the weight and the color histogram correlation has also been worked out and formularized. So the appropriate weight can be determined by the formula for various stereo image pairs. The adaptive window selection method based on edge detection has been improved in two aspects:first, the edge detection depends on gray information and color information. Second, instead of the rectangle window,a more flexible window-" * " type window has been introduced. So the window selection becomes easier and more precise. The experimental results show that this algorithm has high matching accuracy,it is effective and has practical value.