Ask Your Question
0

Fisheye: Did I understand distort and undistort?

asked 2016-12-08 10:16:19 -0600

DontOpenMyCV gravatar image

updated 2016-12-08 10:16:57 -0600

Hi again,

got the very current version installed now and played a bit with fisheye camera and the cv::fisheye commands.

After calibration, I tried the following:

1) fisheye-distort a point (via "fisheye.distortPoints")

2) fisheye-undistort the result of 1) (via "fisheye.undistortPoints")

3) Have a look at the result and wondering...

I thought that after distort and undistort I would get the original point (of course camera-matrix und distortion coefficients where the same in both methods). Except for the input (0,0) I get different values at the end.

Why do I get different values?

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-08 10:58:41 -0600

Tetragramm gravatar image

When you undistort the points, are you supplying the camera matrix in parameter P or leaving it at default? If you leave it at default, then your points will be based on a very different camera matrix. Put your original camera matrix into the undistort function, and of course the distort, but it's required there.

I can't be sure this is your problem, but I've seen it before.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-08 10:16:19 -0600

Seen: 905 times

Last updated: Dec 08 '16