22 #ifndef _IMAGE_CLASSIFIER_H
23 #define _IMAGE_CLASSIFIER_H
49 in >> width >> height;
57 return size(width,height);
67 virtual void setImage(
const unsigned char *ptr,
long stride,
unsigned int width,
unsigned int height) = 0;
77 virtual float operator() (
int x0,
int y0)
const = 0;
81 virtual void Process (
double *out,
int x0,
int y0,
int n,
int step=1)
const = 0;
ImageClassifier(std::istream &in)
Definition: ImageClassifier.h:48
Types involved in boosting.
"Binary" Classifier, virtual class
Definition: ImageClassifier.h:37
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 std::string getSignature() const =0
return the classifier signature
image/size TODO namespace
Definition: Types.h:39
long stride
line stride, the delta offset, in bytes, between two different scanline
Definition: Image.h:41
size GetClassifierGeometry() const
return the [current] classifier geometry
Definition: ImageClassifier.h:56
unsigned int width
image geometry
Definition: Image.h:39
virtual void setImage(const unsigned char *ptr, long stride, unsigned int width, unsigned int height)=0
unsigned char * data
initial address of the first pixel. It must be cast to correct format (uint8, uint16, rgb, etc etc)
Definition: Image.h:43
void setImage(const ImageHandle &src)
setImage for the following operator() and Process
Definition: ImageClassifier.h:70