SVMFilter Class Reference

A SVM-based filter for extracted keypoints. Uses LIBSVM. More...

#include <KeypointFilter.h>

Inheritance diagram for SVMFilter:
KeypointFilter

List of all members.

Public Member Functions

 SVMFilter ()
bool IsLoaded () const
bool LoadFilter (int size=0)
void FilterDescriptors (const vector< cv::KeyPoint > &keyps, const cv::Mat &descs)

Protected Member Functions

struct svm_node * ConvertVector (const cv::Mat &v)

Protected Attributes

struct svm_model * model
int svm_type
int nr_class
double svmthreshold

Detailed Description

A SVM-based filter for extracted keypoints. Uses LIBSVM.


Constructor & Destructor Documentation

SVMFilter::SVMFilter (  )  [inline]

Constructor.


Member Function Documentation

struct svm_node* SVMFilter::ConvertVector ( const cv::Mat &  v  )  [read, protected]

Converts vector v to a format accepted by svm_predict_probability().

void SVMFilter::FilterDescriptors ( const vector< cv::KeyPoint > &  keyps,
const cv::Mat &  descs 
) [virtual]

Filters the descriptors in ObjectDetection.imageDescriptors using the SVM model model.

Note that ObjectDetection.imageDescriptors is not changed, but rather the results are stored at keypoint_ok.

Implements KeypointFilter.

bool SVMFilter::IsLoaded (  )  const [inline, virtual]

Whether the filter is loaded and ready to be used.

Implements KeypointFilter.

bool SVMFilter::LoadFilter ( int  size = 0  )  [virtual]

Loads the SVM model into model from file name.

Implements KeypointFilter.


Member Data Documentation

struct svm_model* SVMFilter::model [read, protected]

The SVM model.

int SVMFilter::nr_class [protected]

Number of classes, should be always 2.

int SVMFilter::svm_type [protected]

Type of SVM, should be always 0.

double SVMFilter::svmthreshold [protected]

Threshold used with SVM filtering.


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