rectifyStereoImages output looks twisted.
Afficher commentaires plus anciens
Hi, I have implemented rectifyStereoImages, but the result looks weird. Please look at the images attached. fig1 and 2 are the original files used. Here is my script.
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);

Réponses (2)
Astha Singh
le 31 Août 2018
0 votes
Hi Sang,
You probably need to fine-tune the 'stereoParams' that you are using.
Most likely that is what is causing the anomaly.
I tried uncalibrated rectification using the two images that you have provided and was able to produce the following rectified image -

You can try this method using the MATLAB Documentation link - Uncalibrated Stereo Image Rectification.
Hope this helps!
1 commentaire
SANG GYU LEE
le 31 Août 2018
Modifié(e) : SANG GYU LEE
le 31 Août 2018
Subhash Variya
le 27 Juin 2021
0 votes
Hello SANG, i have the same problem. do you have the solution now?
Catégories
En savoir plus sur Process Point Clouds dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!