Skip to content

Commit d121d1c

Browse files
committed
calib3d: add CALIB_FIX_TANGENT_DIST flag
1 parent a3189e3 commit d121d1c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

modules/calib3d/include/opencv2/calib3d.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ enum { CALIB_USE_INTRINSIC_GUESS = 0x00001,
268268
CALIB_TILTED_MODEL = 0x40000,
269269
CALIB_FIX_TAUX_TAUY = 0x80000,
270270
CALIB_USE_QR = 0x100000, //!< use QR instead of SVD decomposition for solving. Faster but potentially less precise
271+
CALIB_FIX_TANGENT_DIST = 0x200000,
271272
// only for stereo
272273
CALIB_FIX_INTRINSIC = 0x00100,
273274
CALIB_SAME_FOCAL_LENGTH = 0x00200,

modules/calib3d/src/calibration.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,8 @@ static double cvCalibrateCamera2Internal( const CvMat* objectPoints,
15161516

15171517
mask[ 4] = !(flags & CALIB_FIX_K1);
15181518
mask[ 5] = !(flags & CALIB_FIX_K2);
1519+
mask[6] =
1520+
mask[7] = !(flags & CALIB_FIX_TANGENT_DIST);
15191521
mask[ 8] = !(flags & CALIB_FIX_K3);
15201522
mask[ 9] = !(flags & CALIB_FIX_K4);
15211523
mask[10] = !(flags & CALIB_FIX_K5);

0 commit comments

Comments
 (0)