用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);
>> 正在查找原因