Stereo Calibration of two cameras with different camera resolutions

29 ビュー (過去 30 日間)
Mohammad
Mohammad 2014 年 9 月 4 日
Hi Everyone;
I have just started with camera calibration and found the awesome APP that MATLAB has to perform the calibration. Unfortunately, we cannot perform stereo calibration with it.
However, there is a matlab example that allows for stereo calibration but the problem I am having is that the resolutions of the two cameras I am using are different. One is high definition (1980X1080) and the other one is (512X412) so I cannot use the code from the example unless I try to modify the image.
So I am guessing I should kind of "cut out" the middle 512X412 of the 1980X1080 image to make the calibration? or would imsize work? Seems to modify the image too much.. Anyone has any idea on how this can be done or the camera calibration in general can be done?
Thanks; Ali

採用された回答

Shida
Shida 2015 年 2 月 23 日
Hi, It's very normal to have to calibrate two cameras of different resolution when working in Multi-modal imaging. It's always the case that you have two different sensors with different technologies and highly unlikely that they have same resolution. Kinect is of course a very common example. Unfortunately, the official matlab app doesn't support this. There are some codes which make this possible for kinect 1 which you can google. But if you're looking for something with kinect 2, you can try first using the detectCheckerboardPoints from matlab for each set of images (check the matlab manual) and then when you have the points use : imagePoints = cat(4, poitnsRGB, pointsIR); Then feed these to the estimateCameraParameters (check the manual for more info). The catch is that I've done this for a HD camera and the kinect IR and I get terrible amount of error. I'm still trying to fix this. Worst case, one can use Kinect 1 with one of the available calibration codes.
Regarding what you said about cropping the images, that's a calibration sin ! If you look up info on how to calibrate cameras, they always tell you not to do that because that messes up everything.
Good luck.
  4 件のコメント
Shida
Shida 2016 年 3 月 22 日
You're welcome!
Yash Rathore
Yash Rathore 2017 年 3 月 5 日
Hey Shida, I followed the same steps you provided, and it worked. Thanks a lot for sharing it. :)

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

その他の回答 (2 件)

Image Analyst
Image Analyst 2014 年 9 月 4 日
I'd buy another camera. Why complicate things when simply buying another camera will solve the problem?
  4 件のコメント
Mohammad
Mohammad 2014 年 9 月 4 日
Well the device I am using is the new Kinect for Windows V2 and I am trying to see how good the factory calibration is for this new device. So I kind of need the rotation and translation matrix inbetween the two new cameras. Thanks
Walter Roberson
Walter Roberson 2017 年 5 月 25 日
Hania Alhamad comments to Image Analyst
The answer is irrelevant. Some times there is a need to calibrate two cameras with different resolutions. and buying cameras won't solve the issue. like for example calibrating a thermal and a RGB.

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


muhammet balcilar
muhammet balcilar 2018 年 7 月 14 日
Yes, it is still problem to calibrate different resolution camera for stereo vision system. I had the same difficulties. However I just modifie some functions and prepare a demo. here you can find my demo.
  5 件のコメント
Image Analyst
Image Analyst 2019 年 9 月 16 日
Maybe they're floating point images not in the range of 0-1 so you need to use [] in imshow():
imshow(floatingPointImage, []);
Diwakar Manickavelu
Diwakar Manickavelu 2022 年 1 月 18 日
Hey Muhammet, Thank you very much for this code. It really helped me solved my issue. But, I would like to do this work without the use of toolbox. So, could you tell me what exact modifications did you do in the codes. It would really make my life much easier.
Thank you once again.
Diwakar

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

カテゴリ

Help Center および File ExchangeMATLAB 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