How to remove radial distortions from images using OpenCV?
Asked Answered
S

1

8

I think I should be using cv::remap to remove the distortion but can't figure out what the the maps const Mat& map1, const Mat& map2 to should be to achieve this.

Should I be using the cv::initUndistortRectifyMap to find out the values? If so, I'd really appreciate an example. I do not have the intrinsic camera parameters or don't know how to calculate them. Thanks.

Scrod answered 2/12, 2011 at 10:51 Comment(0)
W
8

If you are looking to remove the distortion caused by the camera lens you should take a look at this answer I wrote some time ago, which has intructions and references on how to do proper camera calibration.

I also suggest this post, which has good info on the procedure as well and uses the C++ interface of OpenCV.

Warrantee answered 2/12, 2011 at 11:59 Comment(7)
Yes I'm trying to remove distortion from the lens. Going over the links now :)Scrod
The second link is dead, unfortunetly. Could you provide a new one?America
Wayback Machine.Warrantee
@Warrantee magnificentAmerica
Turns out that the page is not gone, just moved. New location but unfortunately still have to use wayback machine to download the full-size checkerboard.Whitewing
Hi, I post my question here as a comment because I think it might not get a lot of attention. Camera calibration is something very specific. I read the answers you provided but unfortunately was unable to use this info in my situation. Would it be possible for you to share your insights? #46226443Liquesce
@Liquesce It's been 6 years since I last played with this. Sorry, my memory is quite terrible. Good luck!Warrantee

© 2022 - 2024 — McMap. All rights reserved.