A base class for all filters of extracted keypoints. More...
#include <KeypointFilter.h>
Public Member Functions | |
KeypointFilter () | |
void | SetDebug (size_t d) |
void | SetFilter (const string &f, size_t t) |
void | SetNameString (const string &s) |
virtual bool | LoadFilter (int size=0)=0 |
virtual void | FilterDescriptors (const vector< cv::KeyPoint > &keyps, const cv::Mat &descs)=0 |
bool | IsInUse () const |
virtual bool | IsLoaded () const =0 |
string | NameString () |
Public Attributes | |
vector< bool > | keypoint_ok |
Protected Attributes | |
size_t | debug |
string | name |
string | namestring |
size_t | threshold |
A base class for all filters of extracted keypoints.
KeypointFilter::KeypointFilter | ( | ) | [inline] |
Constructor.
virtual void KeypointFilter::FilterDescriptors | ( | const vector< cv::KeyPoint > & | keyps, | |
const cv::Mat & | descs | |||
) | [pure virtual] |
Filters the descriptors in descs.
Implemented in ClusterFilter, SVMFilter, RandomFilter, and HessianFilter.
bool KeypointFilter::IsInUse | ( | ) | const [inline] |
Whether the filter is to be used.
For actual use the filter needs to be loaded, which is tested with IsLoaded().
virtual bool KeypointFilter::IsLoaded | ( | ) | const [pure virtual] |
Whether the filter is loaded and ready to be used.
Implemented in ClusterFilter, SVMFilter, RandomFilter, and HessianFilter.
virtual bool KeypointFilter::LoadFilter | ( | int | size = 0 |
) | [pure virtual] |
Loads the filter from file name.
Implemented in ClusterFilter, SVMFilter, RandomFilter, and HessianFilter.
string KeypointFilter::NameString | ( | ) | [inline] |
Filter-specific part of relevant filenames.
void KeypointFilter::SetDebug | ( | size_t | d | ) | [inline] |
Sets debug.
void KeypointFilter::SetNameString | ( | const string & | s | ) | [inline] |
Sets namestring.
size_t KeypointFilter::debug [protected] |
Debug level: 0=none, 1=some, 2=all.
vector<bool> KeypointFilter::keypoint_ok |
Temporary storage for results of the filtering.
Contains one bool per descriptor stating if the descriptor passed the filtering.
string KeypointFilter::name [protected] |
The name of the codebook file.
string KeypointFilter::namestring [protected] |
The string to be added to filenames of filtered descriptors.
size_t KeypointFilter::threshold [protected] |
The used threshold for filtering descriptors.