Show rectified Stereo Calibration

조회 수: 4 (최근 30일)
Marvin Höhner
Marvin Höhner 2020년 11월 14일
댓글: Marvin Höhner 2020년 11월 23일
Hello
I have a question about the Stereo Camera Calibrator from the Visual Tool Box I have done a stereo calibration of two cameras. Now I would like to view the rectified images side by side so that the same pixels in both images represent the same object. Inside the Stereo Camera Calibrator there is the show rectified button. Is this button also available as a "code", so that I can bring pictures without the chessboard next to each other?
because with the "imshow(stereoAnaglyph(J1_valid,J2_valid);") command, the images lie on top of each other, and it is difficult to continue working with them.

채택된 답변

Nagasai Bharat
Nagasai Bharat 2020년 11월 23일
Hi,
From my understanding you looking for a function that can be used in code/MATLAB script to show rectified stereo images. There is a rectifyStereoImages function in computer vision toolbox which could solve you problem.
For more information and details about other function, Stereo Vision documentation might be helpful for your application.
  댓글 수: 1
Marvin Höhner
Marvin Höhner 2020년 11월 23일
Thanks for the answer.
Luckily my problem was already solved, because I missed a code error by me, so the 'Suggested Way' did not work. (One image was a color, the other was a grayscale image) The stereo camera calibrator automatically converts the images to grayscale images, but if I want to use "show rectified" I have to do that myself first, and I forgot to do that, or used the wrong file path. So as so often a mistake between the ears of the user, and no real problem in the program :D.
But still, thank you very much for the answer!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by