问题描述
例如,
cv::stereoRectify( cameraMatrix1,distcoeffs1,cameraMatrix2,distcoeffs2,imgsize,R,T,R1,R2,P1,P2,Q,1.0,&RL,&RR );
但是对于单个摄像机,它具有一个cameraMatrix和一个distcoeff。 我应该在cameraMatrix2,distcoeffs2中放入什么?也许还有其他功能?
解决方法
我不确定您要使用stereoRectify尝试实现什么,但是在单个摄像机的环境中这是没有意义的,因为它可以校正一对立体声图像。
看看这个:https://www.cs.cmu.edu/~16385/s17/Slides/13.1_Stereo_Rectification.pdf