Public Member Functions | Private Attributes
fovis::GridKeyPointFilter Class Reference

Places features into grid cells and discards the weakest features in each cell. More...

#include <grid_filter.hpp>

List of all members.

Public Member Functions

void filter (std::vector< KeyPoint > *keypoints)
 GridKeyPointFilter (int img_width, int img_height, int bucket_width, int bucket_height, int max_keypoints_per_bucket)

Private Attributes

int _bucket_height
int _bucket_width
std::vector< std::vector
< KeyPoint > > 
_buckets
int _grid_cols
int _grid_rows
int _img_height
int _img_width
int _max_keypoints_per_bucket

Detailed Description

Places features into grid cells and discards the weakest features in each cell.

Definition at line 14 of file grid_filter.hpp.


Constructor & Destructor Documentation

fovis::GridKeyPointFilter::GridKeyPointFilter ( int  img_width,
int  img_height,
int  bucket_width,
int  bucket_height,
int  max_keypoints_per_bucket 
) [inline]

Construct a keypoint filter.

Conceptually, lays down a grid over the image and sorts keypoints into a grid cell based on their image locations. Then removes the weakest keypoints in each cell (using the Keypoint::score field) until there are at most max_keypoints_per_bucket in each grid cell.

Parameters:
img_widththe width of the input image.
img_heightthe height of the input image.
bucket_widththe width of each bucket.
bucket_heightthe height of each bucket.
max_keypoints_per_bucketthe maximum number of keypoints in each grid cell after filtering.

Definition at line 32 of file grid_filter.hpp.


Member Function Documentation

void fovis::GridKeyPointFilter::filter ( std::vector< KeyPoint > *  keypoints)

filters the specified vector of keypoints.

Parameters:
keypointsinput/output parameter. On output, the weakest keypoints in each grid cell will have been removed from this vector.

Definition at line 20 of file grid_filter.cpp.


Member Data Documentation

Definition at line 55 of file grid_filter.hpp.

Definition at line 54 of file grid_filter.hpp.

std::vector<std::vector<KeyPoint> > fovis::GridKeyPointFilter::_buckets [private]

Definition at line 59 of file grid_filter.hpp.

Definition at line 58 of file grid_filter.hpp.

Definition at line 57 of file grid_filter.hpp.

Definition at line 53 of file grid_filter.hpp.

Definition at line 52 of file grid_filter.hpp.

Definition at line 56 of file grid_filter.hpp.


The documentation for this class was generated from the following files:


libfovis
Author(s): Albert Huang, Maurice Fallon
autogenerated on Thu Jun 6 2019 20:16:12