Skip to content

Commit da0a36c

Browse files
committed
Merge pull request opencv#9288 from sensics:honor-fix-principal-point-fisheye
2 parents 4ad45af + 5d699e9 commit da0a36c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ class Settings
143143
if (useFisheye) {
144144
// the fisheye model has its own enum, so overwrite the flags
145145
flag = fisheye::CALIB_FIX_SKEW | fisheye::CALIB_RECOMPUTE_EXTRINSIC;
146-
if(fixK1) flag |= fisheye::CALIB_FIX_K1;
147-
if(fixK2) flag |= fisheye::CALIB_FIX_K2;
148-
if(fixK3) flag |= fisheye::CALIB_FIX_K3;
149-
if(fixK4) flag |= fisheye::CALIB_FIX_K4;
146+
if(fixK1) flag |= fisheye::CALIB_FIX_K1;
147+
if(fixK2) flag |= fisheye::CALIB_FIX_K2;
148+
if(fixK3) flag |= fisheye::CALIB_FIX_K3;
149+
if(fixK4) flag |= fisheye::CALIB_FIX_K4;
150+
if (calibFixPrincipalPoint) flag |= fisheye::CALIB_FIX_PRINCIPAL_POINT;
150151
}
151152

152153
calibrationPattern = NOT_EXISTING;

0 commit comments

Comments
 (0)