How to calibrating and register two cameras of different resolutions?
17 views (last 30 days)
Show older comments
Hi everyone, I'm experimenting on multi-modal imaging. We have two cameras, one IR and one RGB. I need to calibrate them and register their images with respect to each other, (i.e., to map the pixels in one to the other). The problem is these cameras are not the same resolution (they simply can't exist in the same resolution because of the technology, price and everything, so there's no way we can get an IR camera with high resolution). Now of course matlab's stereoCameraCalibrator only works if the cameras have same resolution. I want to avoid tricks like resizing images since it would result in error in the calibration parameters (the aspect ratios are different and one shouldn't crop images for calibration). Should I then calibrate them separately and somehow match their extrinsic parameters? Would that really work? (because then the correspondence btw. pair of images of the same scene captured by each of the cameras is not gonna be taken into account). I appreciate if anyone could help me out figuring how to do this. Thanks and best wishes. P.S: In case you wonder, the checkerboard is perfectly visible in both cameras.
0 Comments
Accepted Answer
Dima Lisin
on 26 Nov 2014
You may be able to calibrate your cameras using the estimateCameraParameters function. It takes detected image points from each camera, and it does not care what the image sizes are. Unfortunately, the rectifyStereoImages function only supports images of the same size. You can still use undistortImage to undistort the two image individually, but you would have to write your own code to do the rectification.
4 Comments
More Answers (1)
Shida
on 10 Feb 2016
1 Comment
Yash Rathore
on 5 Mar 2017
Hey Shida, I am trying to do a similar thing and kind of stuck right now. I don't wish to ask stupid little things over here, so can I please contact you on your private email address or something? Thanks
See Also
Categories
Find more on MATLAB Support Package for USB Webcams in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!