我已经实现了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