Distortion correction

Hi Steve,
Thanks for your reply.

Yes, that’s exactly that I’ve tried to do in my second attempt : build the correction tables (with initUndistortRectifyMap() ) assuming I know the camera intrinsic coeffs.

For this I’ve followed the code found in math - correcting fisheye distortion programmatically - Stack Overflow.
I’ve used the code posted in the second answer (in python, I translated it in C++).
But the result was not as expected : result image was like warped : pixels near top left corner stay unchanged, pixels near opposite corner moves ‘a lot’ …

That’s why I opened this thread on the forum.

Thanks for any suggestion.

Claude