GTSAM Camera model

88 views
Skip to first unread message

ujas mandavia

unread,
Dec 16, 2022, 12:36:08 PM12/16/22
to gtsam users
Hello.

I have a pinhole camera lens with a 5 parameter radial-tangential distortion model k1, k2, k3, p1, p2. For this camera model I'm not getting the differnce between the usage of gtsam::Cal3_S2, gtsam::Cal3DS2 and gtsam::Cal3DS2_Base calibration models. WHich one is appropriate to use.

If I use gtsam::Cal3_S2 calibration model and it doesn't uses those radial-tangential distortion parameters, will my triangulation will be right with this calibration model without using those distortion parameters?

Thank you,
Ujas

voltron

unread,
Dec 17, 2022, 2:07:20 PM12/17/22
to gtsam users
An easier way to do this is to undistort the imagery before you pass it into your cv pipeline.
If you undistort the imagery first, you don't have to think about distortion. Then you use Cal3_S2.

If you are unable to undistort first:
Cal3DS2_Base provides calibrate/uncalibrate functionality.
Cal3DS2 provides the retract and localCoordinates functions in addition to calibrate/uncalibrate.
It looks like you use Cal3DS2_Base if you are not estimating the calibration and use Cal3DS2 if you are optimizing the calibration.
Reply all
Reply to author
Forward
0 new messages