Places features into grid cells and discards the weakest features in each cell.
More...
|
void | filter (std::vector< KeyPoint > *keypoints) |
|
| GridKeyPointFilter (int img_width, int img_height, int bucket_width, int bucket_height, int max_keypoints_per_bucket) |
|
Places features into grid cells and discards the weakest features in each cell.
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_width | the width of the input image. |
img_height | the height of the input image. |
bucket_width | the width of each bucket. |
bucket_height | the height of each bucket. |
max_keypoints_per_bucket | the maximum number of keypoints in each grid cell after filtering. |
void filter |
( |
std::vector< KeyPoint > * |
keypoints | ) |
|
filters the specified vector of keypoints.
- Parameters
-
keypoints | input/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: