opencv如何在单个摄像机上使用stereoRectify?

问题描述

例如,

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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...