svo
Semi-Direct Visual Odometry
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
svo::feature_detection::AbstractDetector Class Reference

All detectors should derive from this abstract class. More...

#include <feature_detection.h>

Inheritance diagram for svo::feature_detection::AbstractDetector:
svo::feature_detection::FastDetector

List of all members.

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.

Detailed Description

All detectors should derive from this abstract class.


Constructor & Destructor Documentation

svo::feature_detection::AbstractDetector::AbstractDetector ( const int  img_width,
const int  img_height,
const int  cell_size,
const int  n_pyr_levels 
)

Member Function Documentation

virtual void svo::feature_detection::AbstractDetector::detect ( Frame frame,
const ImgPyr img_pyr,
const double  detection_threshold,
Features fts 
) [pure virtual]
int svo::feature_detection::AbstractDetector::getCellIndex ( int  x,
int  y,
int  level 
) [inline, protected]

Set grid cells of existing features as occupied.

Flag the grid cell as occupied.


Member Data Documentation

const int svo::feature_detection::AbstractDetector::border_ = 8 [static, protected]

no feature should be within 8px of border.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines