KeypointFilter Class Reference

A base class for all filters of extracted keypoints. More...

#include <KeypointFilter.h>

Inheritance diagram for KeypointFilter:
ClusterFilter HessianFilter RandomFilter SVMFilter

List of all members.

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

Detailed Description

A base class for all filters of extracted keypoints.


Constructor & Destructor Documentation

KeypointFilter::KeypointFilter (  )  [inline]

Constructor.


Member Function Documentation

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::SetFilter ( const string &  f,
size_t  t 
) [inline]

Sets name and threshold.

void KeypointFilter::SetNameString ( const string &  s  )  [inline]

Sets namestring.


Member Data Documentation

size_t KeypointFilter::debug [protected]

Debug level: 0=none, 1=some, 2=all.

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.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Defines

Generated on 16 Jan 2014 for ObjectDetection by  doxygen 1.6.1