针对局部立体匹配中存在的弱纹理区域匹配精度较低、斜面等区域容易产生视差阶梯效应等问题,文中提出基于分割导向滤波的视差优化算法,以获得亚像素级高精度匹配视差.首先依据左右一致性准则对立体匹配的初始视差进行误匹配检验及均值滤波修正.然后在修正视差图上确定区域分割导向图,对修正视差进行区域导向滤波优化,获得亚像素级高精度的视差结果.实验表明,文中算法能有效改善斜面等区域的视差不平滑现象,降低初始视差的误匹配率,获得较高精度的稠密视差结果.
To solve the problems of low accuracy and staircase effect in slope and weak texture regions for local stereo matching, a disparity optimization algorithm on sub-pixel accuracy using segmentation guided filtering is proposed. Firstly, the mismatch pixels are checked on the initial stereo matching disparity map according to left-right consistency criterion, and the mismatch disparity is corrected by average filtering. Then, the guide image is obtained by segmenting the corrected disparity map, and the sub-pixel accuracy dense disparity map can be achieved via disparity optimization based on the segmentation guided filtering method. Experimental results show that by the proposed algorithm the smoothness of the disparity map in slope regions is improved effectively, the mismatch rates of the initial stereo matching disparity are reduced, and the higher precision of dense disparity is obtained.