|
Fawkes API
Fawkes Development Version
|
Classifier to extract regions of interest. More...
#include <>>

Public Member Functions | |
| Classifier (const char *name) | |
| Constructor. | |
| virtual | ~Classifier () |
| Destructor. | |
| virtual void | set_src_buffer (unsigned char *yuv422_planar, unsigned int width, unsigned int height) |
| Set source buffer. | |
| virtual const char * | name () const |
| Get name of classifier. | |
| virtual ROIList * | classify ()=0 |
| Classify image. | |
Protected Attributes | |
| unsigned char * | _src |
| Source buffer, encoded as YUV422_PLANAR. | |
| unsigned int | _width |
| Width in pixels of _src buffer. | |
| unsigned int | _height |
| Height in pixels of _src buffer. | |
Classifier to extract regions of interest.
The classifier finds regions of interest (ROI) by some a priori knowledge like known colors or shapes. The list of ROIs returned by classify() _must_ be disjunct, meaning that no ROIs overlap each other. Do appropriate merging or shrinking of the ROIs. See the ReallySimpleClassifier for an example.
| firevision::Classifier::Classifier | ( | const char * | name | ) |
| firevision::Classifier::~Classifier | ( | ) | [virtual] |
Destructor.
Definition at line 64 of file classifier.cpp.
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.
Implemented in firevision::SurfClassifier, firevision::SiftppClassifier, firevision::SiftClassifier, firevision::FacesClassifier, firevision::SimpleColorClassifier, and firevision::GradientClassifier.
| const char * firevision::Classifier::name | ( | ) | const [virtual] |
| void firevision::Classifier::set_src_buffer | ( | unsigned char * | yuv422_planar, |
| unsigned int | width, | ||
| unsigned int | height | ||
| ) | [virtual] |
Set source buffer.
| yuv422_planar | a YUV422 planar buffer with the source image to classify. The classifier may NOT modify the image in any way. If that is required the classifier shall make a copy of the image. |
| width | width of buffer in pixels |
| height | height of buffer in pixels |
Reimplemented in firevision::GradientClassifier.
Definition at line 78 of file classifier.cpp.
unsigned int firevision::Classifier::_height [protected] |
Height in pixels of _src buffer.
Definition at line 56 of file classifier.h.
Referenced by firevision::FacesClassifier::classify(), firevision::SiftClassifier::classify(), firevision::SiftppClassifier::classify(), firevision::SimpleColorClassifier::classify(), and firevision::SurfClassifier::classify().
unsigned char* firevision::Classifier::_src [protected] |
Source buffer, encoded as YUV422_PLANAR.
Definition at line 52 of file classifier.h.
Referenced by firevision::FacesClassifier::classify(), firevision::SiftClassifier::classify(), firevision::SiftppClassifier::classify(), firevision::SimpleColorClassifier::classify(), firevision::SimpleColorClassifier::get_mass_point_of_ball(), and firevision::SurfClassifier::classify().
unsigned int firevision::Classifier::_width [protected] |
Width in pixels of _src buffer.
Definition at line 54 of file classifier.h.
Referenced by firevision::FacesClassifier::classify(), firevision::SiftClassifier::classify(), firevision::SiftppClassifier::classify(), firevision::SimpleColorClassifier::classify(), and firevision::SurfClassifier::classify().