1 #ifndef __fovis_grid_filter_hpp__
2 #define __fovis_grid_filter_hpp__
6 #include "keypoint.hpp"
33 int bucket_height,
int max_keypoints_per_bucket) :
34 _img_width(img_width), _img_height(img_height),
35 _bucket_width(bucket_width), _bucket_height(bucket_height),
36 _max_keypoints_per_bucket(max_keypoints_per_bucket),
37 _grid_rows(ceil((float)img_height/bucket_height)),
38 _grid_cols(ceil((float)img_width/bucket_width)),
39 _buckets(_grid_rows * _grid_cols)
49 void filter(std::vector<KeyPoint>* keypoints);
56 int _max_keypoints_per_bucket;
59 std::vector<std::vector<KeyPoint> > _buckets;
Places features into grid cells and discards the weakest features in each cell.
Definition: grid_filter.hpp:14
void filter(std::vector< KeyPoint > *keypoints)
quick and dirty profiling tool.inspired by the matlab tic/toc command
Definition: camera_intrinsics.hpp:6
GridKeyPointFilter(int img_width, int img_height, int bucket_width, int bucket_height, int max_keypoints_per_bucket)
Definition: grid_filter.hpp:32