任意位姿圆柱曲面透视投影失真的图像校正OA北大核心CSTPCD
Image correction for perspective distortion of cylindrical surfaces at arbitrary poses
机器视觉是检测圆柱物体表面缺陷的重要手段,正对圆柱物体拍摄图像的透视投影失真易于校正但拍摄条件十分苛刻,倾斜状态是圆柱物体视觉检测的常态.针对任意位姿圆柱物体表面透视投影导致的失真变形问题,提出一种基于圆柱曲面位姿估计的图像校正方法.该方法在提取圆柱图像两侧边线的基础上,利用圆柱半径和系统成像参数估计圆柱曲面与相机之间的位姿关系,通过建立的圆柱曲面位姿变步长优化迭代算法,实现圆柱曲面位姿精确计算.在此基础上,构建圆柱曲面细分网格点与原始图像像素坐标点的对应关系,然后将曲面展开为平面,建立展开的细分网格点与校正图像像素坐标点的对应关系,从而创建校正图像像素坐标点与原始图像像素坐标点的映射关系,对原始图像进行重采样得到校正图像.实验结果表明,圆柱曲面位姿估计的平均距离误差为0.3 mm、平均角度误差为0.60°;表面贴有棋盘格圆柱物体的图像相邻角点的平均距离标准差从校正前的12.2 pixels降至校正后的0.8 pixels;校正后的实际场景图像能有效识别出圆柱曲面上的文字,圆柱曲面上缺陷的测量误差不超过0.1 mm.校正后的圆柱物体图像消除了圆柱曲面倾斜投影失真和"近大远小"透视变形,验证了提出方法的有效性.
Machine vision is crucial for detecting surface defects on cylindrical objects.While correcting the perspective distortion of images of cylindrical objects is feasible,shooting conditions pose challenges.Cylin-drical objects are often observed in tilted positions.To address distortion caused by the perspective projection of inclined cylindrical object surfaces,a method for image correction based on cylindrical surface pose estima-tion was proposed.This method first extracted the side edges of cylindrical images and then estimated the pose relationship between the cylindrical surface and the camera by using the cylinder radius and the system's imaging parameters.An iterative algorithm with variable step size was employed to precisely calculate the cy-lindrical surface pose.Subsequently,a correspondence relationship between the subdivision mesh points of cylindrical surface and the original image pixel coordinates was established.The surface was unfolded into a plane,and a correspondence relationship between the unfolded subdivision mesh points and the corrected im-age pixel coordinates was established.This created a mapping relationship between the corrected image pixel coordinates and the original image pixel coordinates,allowing for resampling of the original image to obtain the corrected image.Experimental results demonstrate that the average distance error of cylindrical surface pose estimation is 0.3 mm,and the average angle error is 0.60°.The average distance standard deviation of adjacent corner points of a chessboard-patterned cylindrical object surface decreases from 12.2 pixels pre-cor-rection to 0.8 pixels after correction.The corrected image effectively identifies text on the cylindrical sur-face,with a measurement error of defects on the cylindrical surface not exceeding 0.1 mm.The corrected image eliminates the inclined projection distortion and"near large,far small"perspective deformation of the cylindrical surface,validating the effectiveness of the proposed method.
段智威;夏晓华;贺鹏程;胡鹏
长安大学 道路施工技术与装备教育部重点实验室,陕西 西安 710064
计算机与自动化
计算机视觉图像校正任意位姿圆柱曲面透视投影失真位姿估计
computer visionimage correctioninclined cylindrical surfaceperspective projection distor-tionpose estimation
《光学精密工程》 2024 (016)
2577-2589 / 13
陕西省重点研发计划项目(No.2024GX-YBXM-197);陕西省交通运输厅科研项目(No.23-10X);秦创原引用高层次创新创业人才项目(No.QCYRCXM-2022-352)
评论