svo
Semi-Direct Visual Odometry
|
All detectors should derive from this abstract class. More...
#include <feature_detection.h>
Public Member Functions | |
AbstractDetector (const int img_width, const int img_height, const int cell_size, const int n_pyr_levels) | |
virtual | ~AbstractDetector () |
virtual void | detect (Frame *frame, const ImgPyr &img_pyr, const double detection_threshold, Features &fts)=0 |
void | setGridOccpuancy (const Vector2d &px) |
Flag the grid cell as occupied. | |
void | setExistingFeatures (const Features &fts) |
Set grid cells of existing features as occupied. | |
Protected Member Functions | |
void | resetGrid () |
int | getCellIndex (int x, int y, int level) |
Protected Attributes | |
const int | cell_size_ |
const int | n_pyr_levels_ |
const int | grid_n_cols_ |
const int | grid_n_rows_ |
vector< bool > | grid_occupancy_ |
Static Protected Attributes | |
static const int | border_ = 8 |
no feature should be within 8px of border. |
All detectors should derive from this abstract class.
svo::feature_detection::AbstractDetector::AbstractDetector | ( | const int | img_width, |
const int | img_height, | ||
const int | cell_size, | ||
const int | n_pyr_levels | ||
) |
virtual svo::feature_detection::AbstractDetector::~AbstractDetector | ( | ) | [inline, virtual] |
virtual void svo::feature_detection::AbstractDetector::detect | ( | Frame * | frame, |
const ImgPyr & | img_pyr, | ||
const double | detection_threshold, | ||
Features & | fts | ||
) | [pure virtual] |
Implemented in svo::feature_detection::FastDetector.
int svo::feature_detection::AbstractDetector::getCellIndex | ( | int | x, |
int | y, | ||
int | level | ||
) | [inline, protected] |
void svo::feature_detection::AbstractDetector::resetGrid | ( | ) | [protected] |
void svo::feature_detection::AbstractDetector::setExistingFeatures | ( | const Features & | fts | ) |
Set grid cells of existing features as occupied.
void svo::feature_detection::AbstractDetector::setGridOccpuancy | ( | const Vector2d & | px | ) |
Flag the grid cell as occupied.
const int svo::feature_detection::AbstractDetector::border_ = 8 [static, protected] |
no feature should be within 8px of border.
const int svo::feature_detection::AbstractDetector::cell_size_ [protected] |
const int svo::feature_detection::AbstractDetector::grid_n_cols_ [protected] |
const int svo::feature_detection::AbstractDetector::grid_n_rows_ [protected] |
vector<bool> svo::feature_detection::AbstractDetector::grid_occupancy_ [protected] |
const int svo::feature_detection::AbstractDetector::n_pyr_levels_ [protected] |