How do I know what is the problem with "stereoParams" output from Stereo Calibration Tool ? The output of rectifyStereoImages are black images

1 回表示 (過去 30 日間)
Goku
Goku 2017 年 7 月 13 日
コメント済み: Goku 2017 年 7 月 21 日
I am running the calibration tool to get the parameters, with a mean error of less than a pixel. But when I use these parameters to "rectifyStereoImages" function. the rectified images are just generally black images. I am not sure why this happening, It does not happen when I use stereoParams from an example. What is wrong with my "stereoParams"?
if true
frameLeft = imread('cal_L_2.png');
frameRight = imread('cal_R_2.png');
imshow(frameLeft);
[frameLeftRect, frameRightRect] = rectifyStereoImages(frameLeft, frameRight, stereoParams);
figure;
imshow(stereoAnaglyph(frameLeftRect, frameRightRect));
title('Rectified Video Frames');
end

回答 (1 件)

Don Zheng
Don Zheng 2017 年 7 月 17 日
Make sure that 'frameLeftRect' and 'frameRightRect' are expected rectified images and 'imshow'able separately. Also, make sure there are enough distinct key points other than the calibration grids for pattern matching.
Also worth trying other example images from the documentation to identify at which step things go wrong.
  3 件のコメント
Don Zheng
Don Zheng 2017 年 7 月 18 日
Were you getting cropped images for 'frameLeftRect' and 'frameRightRect' without 'full' 'Output'?
Goku
Goku 2017 年 7 月 21 日
Yes, they are cropped without 'full', would you happen to know the reason for that?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCamera Calibration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by