一、原理
二、标定程序
三、畸变矫正(含opencv实现和自己实现)
(有什么其他要补充的或者要提问,留言就行)
github工程:
原理
https://blog.youkuaiyun.com/shiyuqing457/article/details/106764866
标定程序
https://blog.youkuaiyun.com/shiyuqing457/article/details/106768225
畸变矫正
原理
opencv实现畸变矫正
方法一:使用initUndistortRectifyMap和remap两个函数配合实现
initUndistortRectifyMap(cameraMatrix,distCoeffs,R, Mat(),image_size,CV_32FC1,mapx,mapy);
remap(imageSource,newimage,mapx, mapy, INTER_LINEAR);
方法二:不需要转换矩阵的方式,使用undistort函数实现
undistort(imageSource, newimage, cameraMatrix, distCoeffs);