Java视频应用程序使用
Imgproc.undistort(frameIn,frameout_undist,cameraMatrix,distCoeffs,camUndistortMatrix);
要拼合最高版本为OpenCV 3.4.3
的径向扭曲图像,请执行以下操作。我的升级到OpenCV 4.1.1
刚刚中断了这个调用,并且我在新的API中找不到等效的函数。我提供了失真图像frameIn
、未失真图像frameout_undist
的缓冲区、相机和距离系数cameraMatrix
和distCoeffs
,以及从Calib3d.getOptimalNewCameraMatrix()
导出的最佳未失真矩阵。我希望有人能给我指点一下在Opencv 4中消除图像失真的方法。
发布于 2019-11-06 22:45:00
此函数已移至Calib3d模块
Calib3d.undistort(frameIn,frameout_undist,cameraMatrix,distCoeffs);
您还可以在API for OpenCV modules中搜索此问题和类似问题的答案
https://stackoverflow.com/questions/58716648
复制相似问题