From 0d544c5361f57099cd12468c4d35458c32ed32f9 Mon Sep 17 00:00:00 2001 From: g-spacewhale Date: Fri, 24 May 2019 17:22:02 +0200 Subject: [PATCH] minor changes, no improvements --- launch/msckf_vio_tum.launch | 2 +- src/msckf_vio.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/launch/msckf_vio_tum.launch b/launch/msckf_vio_tum.launch index 1d458d2..a28de3f 100644 --- a/launch/msckf_vio_tum.launch +++ b/launch/msckf_vio_tum.launch @@ -18,7 +18,7 @@ output="screen"> - + diff --git a/src/msckf_vio.cpp b/src/msckf_vio.cpp index d56d1a9..16a5951 100644 --- a/src/msckf_vio.cpp +++ b/src/msckf_vio.cpp @@ -1314,8 +1314,8 @@ void MsckfVio::PhotometricMeasurementJacobian( // frame derivative calculated convoluting with kernel [-1, 0, 1] dx = feature.PixelIrradiance(cv::Point2f(p_in_anchor.x+1, p_in_anchor.y), anchor_frame) - feature.PixelIrradiance(cv::Point2f(p_in_anchor.x-1, p_in_anchor.y), anchor_frame); dy = feature.PixelIrradiance(cv::Point2f(p_in_anchor.x, p_in_anchor.y+1), anchor_frame) - feature.PixelIrradiance(cv::Point2f(p_in_anchor.x, p_in_anchor.y-1), anchor_frame); - dI_dhj(0, 0) = dx/pixelDistance.x; - dI_dhj(0, 1) = dy/pixelDistance.y; + dI_dhj(0, 0) = dx/(pixelDistance.x*N*N); + dI_dhj(0, 1) = dy/(pixelDistance.y*N*N); gradientVector.x += dx; gradientVector.y += dy;