A SVM-based filter for extracted keypoints. Uses LIBSVM. More...
#include <KeypointFilter.h>
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 |
A SVM-based filter for extracted keypoints. Uses LIBSVM.
| SVMFilter::SVMFilter | ( | ) | [inline] |
Constructor.
| 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.
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.
1.6.1