libfovis
Public Member Functions | List of all members
GridKeyPointFilter Class Reference

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

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)
 

Detailed Description

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

Constructor & Destructor Documentation

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.

Member Function Documentation

void 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.

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