Camera Calibration: Tilt image to make camera and image plane perpendicular
2 views (last 30 days)
Show older comments
I am currently working in the fields of computer vision and camera calibration. I use the Stereo Camera Calibrator App provided by the Computer Vision System Toolbox which gives me the following screenshot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160413/image.png)
As you can see, the cameras are not positioned directly above the image plane meaning that distant parts of the image appear smaller than they actually are. I have to compare the images to a reference which means that I have to tilt and rotate the images, respectively, so that the image plane is first perpendicular to camera 1 and then to camera 2. I exported the cameraParameters object which gives me a ton of information about the stereo camera setup, unfortunately I do not know how to figure out the angle or where I can find it to transform the images. Does anybody know how to achieve that? Thank you for your efforts.
0 Comments
Accepted Answer
Tohru Kikawada
on 21 Feb 2017
The easist way to compare the two images in same plance is to use rectifyStereoImages function, but if you want to know more what the function does e.g. what transformation matrix is used, you'll need to take a look at Bradski's book which is cited in this document.
Hope this helps,
Tohru
More Answers (1)
Guangshen Ma
on 9 Feb 2018
Hello Sebastian,
Have you solved this problem? I am facing the same problem and I am going to use binocular camera calibration method in MATLAB.
0 Comments
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!