[opencv] 216/251: Honor fixing principal point in camera calib tutorial.

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.

commit 5d699e9ba535c76d68f42546af73eb01a3929710
Author: Ryan Pavlik <ryan at sensics.com>
Date:   Mon Jul 3 16:12:37 2017 -0500

    Honor fixing principal point in camera calib tutorial.
---
 .../calib3d/camera_calibration/camera_calibration.cpp            | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp b/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp
index 249e45f..3524781 100644
--- a/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp
+++ b/samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp
@@ -143,10 +143,11 @@ public:
         if (useFisheye) {
             // the fisheye model has its own enum, so overwrite the flags
             flag = fisheye::CALIB_FIX_SKEW | fisheye::CALIB_RECOMPUTE_EXTRINSIC;
-            if(fixK1)                  flag |= fisheye::CALIB_FIX_K1;
-            if(fixK2)                  flag |= fisheye::CALIB_FIX_K2;
-            if(fixK3)                  flag |= fisheye::CALIB_FIX_K3;
-            if(fixK4)                  flag |= fisheye::CALIB_FIX_K4;
+            if(fixK1)                   flag |= fisheye::CALIB_FIX_K1;
+            if(fixK2)                   flag |= fisheye::CALIB_FIX_K2;
+            if(fixK3)                   flag |= fisheye::CALIB_FIX_K3;
+            if(fixK4)                   flag |= fisheye::CALIB_FIX_K4;
+            if (calibFixPrincipalPoint) flag |= fisheye::CALIB_FIX_PRINCIPAL_POINT;
         }
 
         calibrationPattern = NOT_EXISTING;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list