用matlab mystereoReconstruction20140428.m来标定我拍摄的10幅图像,能够成功生成相机内外参,但是到极线校正的时候报错:
|| 和 && 运算符的操作数必须能够转换为逻辑标量值。
出错 vision.CameraParameters/getValidBounds (line 694)
if left > right || top > bot
出错 vision.CameraParameters/computeUndistortBounds (line 621)
[xBounds, yBounds] = getValidBounds(this, undistortedMask, ...
出错 vision.StereoParameters/computeOutputBounds (line 517)
[xBoundsUndistort2, yBoundsUndistort2] = ...
出错 vision.StereoParameters/computeRectificationParameters (line 454)
[xBounds, yBounds] = computeOutputBounds(this, imageSize, ...
出错 vision.StereoParameters/rectifyStereoImagesImpl (line 192)
[H1, H2, Q, xBounds, yBounds] = ...
出错 rectifyStereoImages (line 101)
[rectifiedImage1, rectifiedImage2] = rectifyStereoImagesImpl(stereoParams, ...
出错 MystereoReconstruction20140428 (line 150)
[J1, J2] = rectifyStereoImages(I1, I2, stereoParams);
>> 正在查找原因
在使用MATLAB的mystereoReconstruction20140428.m进行双目立体视觉标定过程中,成功获取相机内外参数,但在极线校正阶段遇到错误:|| 和 && 运算符的操作数必须能够转换为逻辑标量值。错误出现在vision.CameraParameters/getValidBounds的第694行。进一步跟踪,错误还涉及到computeUndistortBounds、computeOutputBounds和rectifyStereoImagesImpl等函数。目前正在进行问题排查。
9473

被折叠的 条评论
为什么被折叠?



