Stereo pair triangulation after rectification

I'm using a stereo camera,(calibrated with the MATLAB tool), and extracting keypoints from rectified images (I rectify using rectifySteroImages). I implemented a stereo matching algorithm, but now I can not triangulate stereo pairs because I do not know the camera matrices after rectification. Is there some way to obtain the new camera matrices, or some different way to triangulate? Thank you in advance

5 Comments

Hello, did you find the solution? I got the same problem with you and would like to know if you solved it. Thank you!
Hi, I did not find any good solution.
I rectified my set of images using opencv, that also provides the new projection matrices, and I used them in matlab.
Let me know if you find some better solution.
From the following post:
"You should undistort the images before using triangulate, but you should not rectify them. The triangulate function uses the linear triangulation algorithm from Hartley and Zisserman, which does not require the images to be rectified."
one more problem. What 'OutputView' we should do when undistort the image? 'same' or 'valid' or 'full'? I tried and saw two different result. Thanks much.
Thank you for the answer, but this does not solve the problem. I need rectification to perform fast stereo matching, plus it is reasonable to know new projection matrices to perform other tasks as for instance PnP.

Sign in to comment.

Answers (0)

Asked:

on 19 Sep 2018

Community Treasure Hunt

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

Start Hunting!