svo
Semi-Direct Visual Odometry
|
00001 // This file is part of SVO - Semi-direct Visual Odometry. 00002 // 00003 // Copyright (C) 2014 Christian Forster <forster at ifi dot uzh dot ch> 00004 // (Robotics and Perception Group, University of Zurich, Switzerland). 00005 // 00006 // SVO is free software: you can redistribute it and/or modify it under the 00007 // terms of the GNU General Public License as published by the Free Software 00008 // Foundation, either version 3 of the License, or any later version. 00009 // 00010 // SVO is distributed in the hope that it will be useful, but WITHOUT ANY 00011 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 00017 #ifndef SVO_FEATURE_ALIGNMENT_H_ 00018 #define SVO_FEATURE_ALIGNMENT_H_ 00019 00020 #include <svo/global.h> 00021 00022 namespace svo { 00023 00027 namespace feature_alignment { 00028 00029 bool align1D( 00030 const cv::Mat& cur_img, 00031 const Vector2f& dir, // direction in which the patch is allowed to move 00032 uint8_t* ref_patch_with_border, 00033 uint8_t* ref_patch, 00034 const int n_iter, 00035 Vector2d& cur_px_estimate, 00036 double& h_inv); 00037 00038 bool align2D( 00039 const cv::Mat& cur_img, 00040 uint8_t* ref_patch_with_border, 00041 uint8_t* ref_patch, 00042 const int n_iter, 00043 Vector2d& cur_px_estimate, 00044 bool no_simd = false); 00045 00046 bool align2D_SSE2( 00047 const cv::Mat& cur_img, 00048 uint8_t* ref_patch_with_border, 00049 uint8_t* ref_patch, 00050 const int n_iter, 00051 Vector2d& cur_px_estimate); 00052 00053 bool align2D_NEON( 00054 const cv::Mat& cur_img, 00055 uint8_t* ref_patch_with_border, 00056 uint8_t* ref_patch, 00057 const int n_iter, 00058 Vector2d& cur_px_estimate); 00059 00060 } // namespace feature_alignment 00061 } // namespace svo 00062 00063 #endif // SVO_FEATURE_ALIGNMENT_H_