SiftppClassifier Class Reference
SIFTPP classifier. More...
#include <classifiers/siftpp.h>

Classes | |
| struct | Feature |
| Siftpp Feature struct. More... | |
Public Member Functions | |
| SiftppClassifier (const char *features_file, int samplingStep=2, int octaves=4, int levels=3, float magnif=3.0, int noorient=0, int unnormalized=0) | |
| Constructor. | |
| virtual | ~SiftppClassifier () |
| Destructor. | |
| virtual std::list< ROI > * | classify () |
| Classify image. | |
Detailed Description
SIFTPP classifier.This class provides a classifier that uses SIFTPP to detect objects in a given image by matching features. The objects are reported back as regions of interest. Each ROI contains an object. ROIs with 11x11 are matched features.
This code uses siftpp from http://vision.ucla.edu/~vedaldi/code/siftpp/siftpp.html and is partly based on code from their package.
Definition at line 45 of file siftpp.h.
Constructor & Destructor Documentation
| SiftppClassifier::SiftppClassifier | ( | const char * | object_file, | |
| int | samplingStep = 2, |
|||
| int | octaves = 4, |
|||
| int | levels = 3, |
|||
| float | magnif = 3.0, |
|||
| int | noorient = 0, |
|||
| int | unnormalized = 0 | |||
| ) |
Constructor.
- Parameters:
-
object_file file that contains an image of the object to detect samplingStep Initial sampling step octaves Number of analysed octaves levels Number of levels per octave magnif Keypoint magnification (default = 3) noorient rotation invariance (0) or upright (1) unnormalized Normalization of features (default 0)
Definition at line 67 of file siftpp.cpp.
References fawkes::TimeTracker::add_class(), PNGReader::colorspace(), SiftppClassifier::Feature::descs, SiftppClassifier::Feature::key, SiftppClassifier::Feature::number_of_desc, fawkes::TimeTracker::ping_end(), fawkes::TimeTracker::ping_start(), PNGReader::pixel_height(), PNGReader::pixel_width(), PNGReader::read(), and PNGReader::set_buffer().
| SiftppClassifier::~SiftppClassifier | ( | ) | [virtual] |
Member Function Documentation
| std::list< ROI > * SiftppClassifier::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
Write image to verify correct operation
adding feature-ROI
Implements Classifier.
Definition at line 230 of file siftpp.cpp.
References Classifier::_height, Classifier::_src, Classifier::_width, SiftppClassifier::Feature::descs, SiftppClassifier::Feature::key, SiftppClassifier::Feature::number_of_desc, 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:
- src/firevision/classifiers/siftpp.h
- src/firevision/classifiers/siftpp.cpp

