Stereo Calibration and Image Rectification

조회 수: 23 (최근 30일)
John Boyle
John Boyle 2015년 3월 4일
댓글: Anil Horasan 2016년 8월 24일
I'm trying to use the stereo camera calibrator to rectify a pair of stereo images. However, while the reprojection errors, extrinsic view, and reprojected points all look reasonable, the "show rectified" button just returns horizontal lines of various colors.
Similarly, attempting to use
[J1, J2] = rectifyStereoImages(I1, I2, stereoParams);
to rectify the stereo images returns a blank image:
Turning on 'OutputView' ,'full' :
% Rectify the images.
[J1, J2] = rectifyStereoImages(I1, I2, stereoParams, 'OutputView' ,'full');
shows the rectification is inverted:
I've attached my calibration images if they are of use. Thanks in advance for any help!
  댓글 수: 1
Anil Horasan
Anil Horasan 2016년 8월 24일
I was having a similar issue, then I figure out that my calibration parameters were wrong. That was because I subtracted 2 of my stereo pairs' HTM wrt a reference point instead of multiplying them. What a shame! I suggest you to check your camera calibration parameters (stereoParams).

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

채택된 답변

Dima Lisin
Dima Lisin 2015년 3월 5일
편집: Dima Lisin 2015년 3월 5일
Hi John,
You should check a couple of things. First, it looks like your checkerboard is a very short distance away from the cameras. In this case you do not need a wide baseline, so see if you can move the cameras closer together. Second, make sure that camera 1 is to the left of camera 2, as you face in the same direction as the cameras. This is not strictly necessary, but it makes things easier. Otherwise your disparity will be negative.
Once you get past this problem, see this answer, if you run into more issues.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for USB Webcams에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by