From ed2ba618287e2356e2fd1cb057587f2aa66ff8d9 Mon Sep 17 00:00:00 2001 From: Raphael Maenle Date: Wed, 17 Jul 2019 10:34:28 +0200 Subject: [PATCH] fixed anchor frame calcualtion --- include/msckf_vio/feature.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/msckf_vio/feature.hpp b/include/msckf_vio/feature.hpp index 5cc997f..f222a8e 100644 --- a/include/msckf_vio/feature.hpp +++ b/include/msckf_vio/feature.hpp @@ -1067,9 +1067,8 @@ bool Feature::initializeAnchor(const CameraCalibration& cam, int N) // check if image has been pre-undistorted - if(cam.distortion_model.substr(0,3) == "pre-") + if(cam.distortion_model.substr(0,3) == "pre") { - std::cout << "is a pre" << std::endl; //project onto pixel plane undist_anchor_center_pos = cv::Point2f(u * cam.intrinsics[0] + cam.intrinsics[2], v * cam.intrinsics[1] + cam.intrinsics[3]);