|
X-Boost
2.3.8
|
"Binary" Classifier, virtual class More...
#include <ImageClassifier.h>
Inherited by ImageClassifierWrapper< _Instance, _Preprocessor >.
Public Member Functions | |
| ImageClassifier (std::istream &in) | |
| ImageClassifier (int w, int h) | |
| size | GetClassifierGeometry () const |
| return the [current] classifier geometry | |
| virtual std::string | getSignature () const =0 |
| return the classifier signature | |
| virtual void | setImage (const unsigned char *ptr, long stride, unsigned int width, unsigned int height)=0 |
| void | setImage (const ImageHandle &src) |
| setImage for the following operator() and Process | |
| virtual float | operator() (int x0, int y0) const =0 |
| virtual void | Process (double *out, int x0, int y0, int n, int step=1) const =0 |
| virtual void | Release ()=0 |
"Binary" Classifier, virtual class
|
inline |
default constructor, import geometry from istream read width, height
|
pure virtual |
compute response for an image point imported using setImage.
| x0,y0 | an image point (top-left coordinate of window) |
Implemented in ImageClassifierWrapper< _Instance, _Preprocessor >.
|
pure virtual |
Compute the response image for one scale, one row from (x0,y0) for n points, step step process all points of image imported with setImage
Implemented in ImageClassifierWrapper< _Instance, _Preprocessor >.
|
pure virtual |
Release memory associated to setImage TODO: is necessary?
Implemented in ImageClassifierWrapper< _Instance, _Preprocessor >.
|
pure virtual |
Import an image. the Image is preprocessed for further detection performed by operator() and Process. no scale changes are applyed to image. TODO: stride before width and height???
Implemented in ImageClassifierWrapper< _Instance, _Preprocessor >.
1.8.7