我已经实现了 rectifyStereoImages,但结果看起来很奇怪。请查看随附的图片。两台相机的型号相同(罗技 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