Ask Your Question

Lens distortion parameters a,b,c to k1,k2,p1,p2...

asked 2016-06-29 07:30:21 -0500

Finfa811 gravatar image

Hi there,

I've used ImageMagick to calibrate my camera and obtain the a,b,c lens distortion parameters. How do I convert these a,b,c parameters to OpenCV style (k1,k2,p1,p2...)?

edit retag flag offensive close merge delete


Best approach is to use opencv to calibrate your camera. If you want absolutely use imagemagick parameter and convert to opencv model you have to use matlab like software(scilab octave mathematica....) to adjust model parameter....

LBerger gravatar imageLBerger ( 2016-06-30 01:56:11 -0500 )edit

Yes, that is the best solution, but I just want to avoid the tediousness of a new calibration in OpenCV. Anyway I guess I'll have to do it sooner or later... Thanks.

Finfa811 gravatar imageFinfa811 ( 2016-06-30 02:12:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-30 03:28:02 -0500

Finfa811 gravatar image

I've found the relation here:

  • a = k2 * (width/2) ^ 3
  • b = 0
  • c = k1 * (width/2)
  • d = 1
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-06-29 07:30:21 -0500

Seen: 1,685 times

Last updated: Jun 30 '16