From 692cb1b47f821e98a9b6f598feeeb14e648804ab Mon Sep 17 00:00:00 2001 From: Christian Forster Date: Sun, 27 Apr 2014 23:34:59 +0200 Subject: [PATCH] added helper function to abstract feature extractor class --- svo/include/svo/feature_detection.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/svo/include/svo/feature_detection.h b/svo/include/svo/feature_detection.h index 85e57c6..a5f5d26 100644 --- a/svo/include/svo/feature_detection.h +++ b/svo/include/svo/feature_detection.h @@ -61,13 +61,23 @@ public: void setGridOccpuancy(const Vector2d& px); protected: + static const int border_ = 8; //!< no feature should be within 8px of border. const int cell_size_; const int n_pyr_levels_; const int grid_n_cols_; const int grid_n_rows_; vector grid_occupancy_; + void resetGrid(); + void setExistingFeatures(const Features& fts); + + inline int getCellIndex(int x, int y, int level) + { + const int scale = (1< DetectorPtr;