Stereo Calibration of two cameras with different camera resolutions
이전 댓글 표시
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
채택된 답변
추가 답변 (2개)
Image Analyst
2014년 9월 4일
0 개 추천
I'd buy another camera. Why complicate things when simply buying another camera will solve the problem?
댓글 수: 4
Mohammad
2014년 9월 4일
Image Analyst
2014년 9월 4일
So buy two new cameras.
Mohammad
2014년 9월 4일
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
2018년 7월 14일
0 개 추천
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
Ehsan Zare Bidaki
2018년 10월 19일
편집: Ehsan Zare Bidaki
2018년 10월 19일
Hi Muhammet, I used your code for stereo rectification. It is working well for the calibration part. However, after rectification, the images are in the same size. It means the images were changed which is not good for my project. I was wondering if there is a way to consider the original size for the output images. Thanks!
muhammet balcilar
2019년 5월 10일
편집: muhammet balcilar
2019년 5월 10일
it is not possible to rectify the images in the same resolution of the given image resolution.
But it is possible to project one image into another image. I just updated the demo code and added the results of the projection to the low-resolution image onto the high-resolution image. But without knowing the real depth of the object it does not work 100% accurate. In the given demo, I just supposed all objects are on Z=0 plane where the top-left corner of the first calibration checkerboard is our reference (0,0,0).
within that projection for instance if you have one thermal camera and one USB camera you can know the temperature of each pixel on usb camera image under the assumption that all objects are at Z=0 plane . Just check the updated demo,
Archana Gupta
2019년 9월 16일
Hi Muhammet,
I am trying your code for calibration of cameras with different resolutions, but one of my undistorted image is completely black.
Do you have any idea about this error.
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
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
카테고리
도움말 센터 및 File 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!