rectifyStereoImages(图像校正)输出看起来失真

rectifyStereoImages (Image rectification) output looks distorted

我已经实现了 rectifyStereoImages,但结果看起来很奇怪。请查看所附图片。两个摄像头都是同一型号 (Logitech C920)。

left = webcam(3);
right = webcam(1);
I1 = snapshot(left);
figure(1);
imshow(I1);
I2 = snapshot(right);
figure(2);
imshow(I2);
[J1,J2]=rectifyStereoImages(I1,I2,stereoParams,'OutputView','full');

figure(3);

imshow(cat(3,J1(:,:,1),J2(:,:,2:3)),'InitialMagnification',50);

clear left right

我测试了几次相机,我想,原因是相机本身。我在校准前切掉了相机的右侧部分,现在看起来不错。

我原来拍摄的图像分辨率为1280 x 720,我只拍了左侧的960 x 720。