Is there a Matlab version of the OpenCV function initUndist​ortRectify​Map()?

7 views (last 30 days)

Accepted Answer

Yuval Levental
Yuval Levental on 15 Nov 2020
Answering my own question. There isn't such a function, but finding the (x, y) bounds and Homography matrices from ComputeRectificationParams.m, then using the Homography and undistortion equations, then using interp2 to move forward gives accurate rectification. See https://www.mathworks.com/help///visionhdl/ug/stereoscopic-rectification.html for details.

More Answers (1)

Debasish Samal
Debasish Samal on 13 Nov 2020
Hi,
The rectifyStereoImages function returns undistorted and rectified versions of the input images using the stereo parameters. I think, this is what you are looking for. Please refer to the documentation of the same to know more about the function.
Thanks.
-Debasish
  1 Comment
Yuval Levental
Yuval Levental on 13 Nov 2020
Hello, I know about this function, but I need something that specifically returns the x and y transformation maps.
For instance, the Undistortion block outputs coordinates (u,v) at https://www.mathworks.com/help///visionhdl/ug/stereoscopic-rectification.html
Is there a similar command in Matlab?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by