X-Boost  2.3.8
Functions
HaarFeatureTools.h File Reference

this file implement some debug method usefull for presentation or debugging of Haar Feature More...

#include "Feature/HaarFeature.h"

Go to the source code of this file.

Functions

void DumpFeatureImg (const char *filename, const HaarFeature &out, int w, int h)
 
void AddStochasticImg (double *img, double alpha, const HaarFeature &out, int w, int h)
 
void DumpStochasticImg (const char *filename, const double *img, int w, int h)
 

Detailed Description

this file implement some debug method usefull for presentation or debugging of Haar Feature

Function Documentation

void AddStochasticImg ( double *  img,
double  alpha,
const HaarFeature out,
int  w,
int  h 
)

Generate a 'Stochastic Img' where Haar features are fused according to alpha values

void DumpFeatureImg ( const char *  filename,
const HaarFeature out,
int  w,
int  h 
)

Generate a 'Feature Img' from an HaarFeature

Parameters
filenamean output pgm file
void DumpStochasticImg ( const char *  filename,
const double *  img,
int  w,
int  h 
)

dump on a pgm image the 'stochastic img' generate by subsequent call to AddStochasticImg