All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Attributes
vslam::Grid Class Reference

Fast lookup of content by image coordinates. More...

#include <grid.h>

List of all members.

Public Member Functions

Cell getCell (const Vector2d &image_coords) const
 get the cell that contains given coordinates.
vector< int > getNearKeypoints (const Cell &cell) const
 get keypoint indexes contained in the given cell
 Grid (int _rowsize, int _colsize, const vector< cv::KeyPoint > &keypoints)
 ~Grid ()

Protected Attributes

int colnum
int colsize
vector< int > ** grid
int rownum
int rowsize

Detailed Description

Fast lookup of content by image coordinates.

Class that devides imaging surface into regurally spaced grid and provides methods for fast lookup of nearby contents in imaging surface by coordinates of the imaging surface.

Definition at line 36 of file grid.h.


Constructor & Destructor Documentation

vslam::Grid::Grid ( int  _rowsize,
int  _colsize,
const vector< cv::KeyPoint > &  keypoints 
) [inline]
Parameters:
_rowsizenuber of rows in a cell.
_colsizenumber of columns in a cell.
keypointskeypoints that are to going to be searched by their coordinates.

Definition at line 50 of file grid.h.

vslam::Grid::~Grid ( ) [inline]

Definition at line 77 of file grid.h.


Member Function Documentation

Cell vslam::Grid::getCell ( const Vector2d &  image_coords) const [inline]

get the cell that contains given coordinates.

Definition at line 68 of file grid.h.

vector<int> vslam::Grid::getNearKeypoints ( const Cell cell) const [inline]

get keypoint indexes contained in the given cell

Definition at line 73 of file grid.h.


Member Data Documentation

int vslam::Grid::colnum [protected]

Definition at line 41 of file grid.h.

int vslam::Grid::colsize [protected]

Definition at line 39 of file grid.h.

vector<int>** vslam::Grid::grid [protected]

Definition at line 42 of file grid.h.

int vslam::Grid::rownum [protected]

Definition at line 40 of file grid.h.

int vslam::Grid::rowsize [protected]

Definition at line 38 of file grid.h.


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


pose_estimation
Author(s): Jiri Divis/jiridivis@gmail.com
autogenerated on Wed Mar 27 2013 21:00:16