SiftClassifier Class Reference
SIFT classifier. More...
#include <classifiers/sift.h>

Public Member Functions | |
| SiftClassifier (const char *features_file, unsigned int pixel_width, unsigned int pixel_height, int kdtree_bbf_max_nn_chks=200, float nn_sq_dist_ratio_thr=0.49, int flags=0) | |
| Constructor. | |
| virtual | ~SiftClassifier () |
| Destructor. | |
| virtual std::list< ROI > * | classify () |
| Classify image. | |
Detailed Description
SIFT classifier.This class provides a classifier that uses OpenCV to detect objects in a given image by matching features using SIFT. The objects are reported back as regions of interest. Each ROI contains an object.
This code is based on the sift package provided by Rob Hess. at http://web.engr.oregonstate.edu/~hess/
Definition at line 44 of file sift.h.
Constructor & Destructor Documentation
| SiftClassifier::SiftClassifier | ( | const char * | object_file, | |
| unsigned int | pixel_width, | |||
| unsigned int | pixel_height, | |||
| int | kdtree_bbf_max_nn_chks = 200, |
|||
| float | nn_sq_dist_ratio_thr = 0.49, |
|||
| int | flags = 0 | |||
| ) |
Constructor.
- Parameters:
-
object_file file that contains the object to detect pixel_width width of images that will be processed pixel_height height of images that will be processed kdtree_bbf_max_nn_chks maximum number of keypoint NN candidates to check during BBF search nn_sq_dist_ratio_thr threshold on squared ratio of distances between NN and 2nd NN flags flags, not used yet.
Definition at line 73 of file sift.cpp.
References fawkes::TimeTracker::add_class(), fawkes::TimeTracker::ping_end(), and fawkes::TimeTracker::ping_start().
Member Function Documentation
| std::list< ROI > * SiftClassifier::classify | ( | ) | [virtual] |
Classify image.
The current buffer is processed and scanned for the features the classifier has been written and initialized for. It returns a list of disjunct regions of interest.
- Returns:
- disjunct list of extracted regions of interest
Implements Classifier.
Definition at line 135 of file sift.cpp.
References Classifier::_height, Classifier::_src, Classifier::_width, fawkes::TimeTracker::ping_end(), fawkes::TimeTracker::ping_start(), and fawkes::TimeTracker::print_to_stdout().
The documentation for this class was generated from the following files:

