追溯到go_calib_stereo.m文件中,就是标定点由棋盘的三维坐标反算到左相机照片的像素坐标以后和左相机照片的真实位置差值emax大于了系统指定的阈值。通过修改阈值可以强行让标定过程继续。
找到go_calib_stereo.m文件中的emax设置,它与一个阈值进行了比较,这个阈值的设置是:
if inconsistent_pairs_detection,
%- This threshold is used only to automatically identify non-consistant image pairs (set to Infinity to not reject pairs)
threshold = 50; %1.673; %1e10; %50; (这里设的是50,可以直接把threshold设为Inf无穷大)
else
threshold = Inf;
end;
按照这个方式继续执行,结果出现“Main stereo calibration optimization procedure - Number of pairs of images: 10
Gradient descent iterations: 1...2...警告: 矩阵接近奇异值,或者缩放错误。结果可能不准确。RCOND = 2.364063e-18。
> In go_calib_stereo at 244
3...警告: 矩阵接近奇异值,或者缩放错误。结果可能不准确。RCOND = 5.959590e-19。 ”
Focal Length: fc_left = [ NaN NaN ] ?[ NaN NaN ]
Principal point: cc_left = [ NaN NaN ] ?[ NaN NaN ]