X-Boost  2.3.8
Public Member Functions | List of all members
ImageClassifier Class Referenceabstract

"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
 

Detailed Description

"Binary" Classifier, virtual class

Constructor & Destructor Documentation

ImageClassifier::ImageClassifier ( std::istream &  in)
inline

default constructor, import geometry from istream read width, height

Member Function Documentation

virtual float ImageClassifier::operator() ( int  x0,
int  y0 
) const
pure virtual

compute response for an image point imported using setImage.

Parameters
x0,y0an image point (top-left coordinate of window)

Implemented in ImageClassifierWrapper< _Instance, _Preprocessor >.

virtual void ImageClassifier::Process ( double *  out,
int  x0,
int  y0,
int  n,
int  step = 1 
) const
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 >.

virtual void ImageClassifier::Release ( )
pure virtual

Release memory associated to setImage TODO: is necessary?

Implemented in ImageClassifierWrapper< _Instance, _Preprocessor >.

virtual void ImageClassifier::setImage ( const unsigned char *  ptr,
long  stride,
unsigned int  width,
unsigned int  height 
)
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 >.


The documentation for this class was generated from the following file: