首页|基于自适应窗的动态权值代价聚合立体匹配

基于自适应窗的动态权值代价聚合立体匹配

扫码查看
传统局部匹配算法通常在不同聚合窗口下采用单一权值进行代价聚集,而忽略了不同区域像素点之间的差异性,易导致基于双目视觉测量的立体匹配精度不稳定。为此,提出一种基于自适应窗的动态权值代价聚合立体匹配算法。首先,以梯度信息表征模型为约束条件,构建代价聚合自适应十字交叉窗口。其次,分析视差不连续区域与弱纹理区域的像素特征,建立基于像素距离与色差双阈值权重的代价聚集模型,进而计算各窗口的动态权重影响因子。最后,基于线性迭代聚类法分割视差图区域,剔除奇异的视差值以提高算法匹配精度。实验结果表明,在Middlebury数据集的测试中,所提算法的平均非遮挡区域和全部区域的误匹配率分别为4。11%和5。65%,优于传统匹配算法;4组测量样品的全局长度测量平均相对误差小于1。2%,全局高度测量平均相对误差小于2。7%。实验结果检验了所提算法的有效性和可靠性。
Dynamic Weight Cost Aggregation Algorithm for Stereo Matching Based on Adaptive Window
Stereo matching is the key to binocular vision measurement,which extracts depth information from left and right images captured by binocular cameras to achieve three-dimensional measurement of the target.Reconstructing the three-dimensional morphology of sample surface by a binocular vision system can facilitate the quantification of product surface quality information,characterize defects during the manufacturing process of the product,and assist in analyzing the distribution patterns of product defects.However,due to factors such as an unstable physical environment,the geometric shape of the surface being measured,and the precision of the acquisition equipment,existing stereo matching algorithms are difficult to balance accuracy and real-time performance simultaneously,which can affect the efficiency of industrial testing.How to improve the accuracy of stereo matching of binocular images and enhance the measurement accuracy of binocular vision is still the main problem facing this research field.For these reasons,the stereo matching model is established based on binocular visual imaging system,and a dynamic weight cost aggregation stereo matching algorithm based on adaptive windows is proposed in this manuscript.Firstly,traditional local matching algorithms usually use a single weight for cost aggregation under different aggregation windows,while ignoring the differences between pixels in different regions,which can easily lead to unstable stereo matching accuracy based on binocular vision measurement.a cost aggregation adaptive cross window is constructed based on the gradient information representation model as a constraint to adapt to the different requirements of window size in weak texture regions and disparity discontinuous regions in this paper.The algorithm proposed in the paper can achieve a large adaptive window in weak texture regions and can limit its arm length extension in texture rich regions.Secondly,analyze the pixel features of discontinuous disparity regions and weak texture regions,a cost aggregation model is established based on pixel distance and color difference dual threshold weights to calculate the dynamic weight influence factors of each window,which can achieve the distribution of cost weights for different windows.In terms of cost aggregation performance testing,the comparative experiment with the AD-Census algorithm shows that the average mismatch rate of the proposed algorithm in the paper is 4.21%,and its overall matching accuracy has a significant advantage.Thirdly,in order to recover the information of invalid pixels,a local neighborhood of invalid pixels is constructed based on the cross intersection method,and then the occluded points and mismatched points are interpolated and filled separately to obtain a denser disparity image.Additionally,the disparity image area is segmented based on the linear iterative clustering method.By utilizing the mean and variance information of local regions,singular disparity values are removed,and reliable pixel disparity values are searched for to fill in,thereby improving the overall matching accuracy of the disparity map.Finally,the experimental results show that in the testing of the Middlebury dataset,the proposed algorithm has an average mismatch rate of 4.11%for non-occluded areas and 5.65%for all areas,respectively,which is better than traditional matching algorithms.Based on the algorithm proposed in this paper,a binocular system platform was constructed for experiments,and the measurement results of 3D printed samples were compared with those obtained by the triangular laser method.For 4 groups of measured samples,the average relative error of global length measurement is less than 1.2%,and the average relative error of global height measurement is less than 2.7%.The experimental results verify the effectiveness and reliability of the algorithm proposed in this paper.

Machine visionStereo matchingAdaptive cross aggregation windowDynamic weightSuperpixel segmentation

吴福培、刘宇豪、王瑞、李昇平

展开 >

汕头大学工学院机械工程系,汕头 515063

机器视觉 立体匹配 自适应十字交叉聚合窗口 动态权值 超像素分割

国家自然科学基金广东省自然科学基金广东省普通高校重点领域专项广东省普通高校创新团队资助项目

615732332021A15150106612020ZDZX20052020KCXTD012

2024

光子学报
中国光学学会 中国科学院西安光学精密机械研究所

光子学报

CSTPCD北大核心
影响因子:0.948
ISSN:1004-4213
年,卷(期):2024.53(8)