A clustering-based filter for extracted keypoints. More...
#include <KeypointFilter.h>
Public Member Functions | |
ClusterFilter () | |
bool | IsLoaded () const |
bool | LoadFilter (int size=0) |
void | FilterDescriptors (const vector< cv::KeyPoint > &keyps, const cv::Mat &descs) |
Protected Attributes | |
cv::Mat * | codebook |
A clustering-based filter for extracted keypoints.
ClusterFilter::ClusterFilter | ( | ) | [inline] |
Constructor.
void ClusterFilter::FilterDescriptors | ( | const vector< cv::KeyPoint > & | keyps, | |
const cv::Mat & | descs | |||
) | [virtual] |
Filters the descriptors in ObjectDetection.imageDescriptors using codebook and threshold.
Note that ObjectDetection.imageDescriptors is not changed, but rather the results are stored at keypoint_ok.
Implements KeypointFilter.
bool ClusterFilter::IsLoaded | ( | ) | const [inline, virtual] |
Whether the filter is loaded and ready to be used.
Implements KeypointFilter.
bool ClusterFilter::LoadFilter | ( | int | size = 0 |
) | [virtual] |
Loads the filter clusters into codebook from file name.
Implements KeypointFilter.
cv::Mat* ClusterFilter::codebook [protected] |
The codebook used in filtering as matrix.