Fast lookup of content by image coordinates. More...
#include <grid.h>
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 |
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.
vslam::Grid::Grid | ( | int | _rowsize, |
int | _colsize, | ||
const vector< cv::KeyPoint > & | keypoints | ||
) | [inline] |
vslam::Grid::~Grid | ( | ) | [inline] |
Cell vslam::Grid::getCell | ( | const Vector2d & | image_coords | ) | const [inline] |
vector<int> vslam::Grid::getNearKeypoints | ( | const Cell & | cell | ) | const [inline] |
int vslam::Grid::colnum [protected] |
int vslam::Grid::colsize [protected] |
vector<int>** vslam::Grid::grid [protected] |
int vslam::Grid::rownum [protected] |
int vslam::Grid::rowsize [protected] |