ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.29k stars 1.4k forks source link

Wrong distortion parameters #468

Closed mhyoosefian closed 2 years ago

mhyoosefian commented 2 years ago

Hi,

Hope you are doing well. I used kalibr, MATLAB, and openCV to calibrate my Raspberry Pi V2. All three of them resulted in nearly the same distortion parameters, which are as follows: Radial: k1 = 0.15185527460985995, k2 = -0.2585916365979772 and Tangential: k3 = -0.005451906782185835, k4 = -0.0031241153335523227 . However, when I try to undistort the images using MATLAB, it gives me wrong (at least seemingly!) result. For instance, this is the original image: undistorted and here is the undistorted image: undistorted1 I think this is incorrect since those black edges do not appear for the EuRoC mav dataset images, when I try to undistort them! However, If the result is correct, then what should I do to remove the black edges? will it affect my visual odometry algorithm?

Ideas are appreciated!