21 #ifndef _COMMON_TOOLS_H
22 #define _COMMON_TOOLS_H
27 #include "IntegralImage.h"
void load_images(IntegralImagesType &out, const char *data_set, unsigned int &width, unsigned int &height)
load a training set using a data_set file. fill the vector with (extended) integral image and return ...
a descritor based on a integral image
void add_offset(IntegralImagesType &out, const IntegralImagesType &src, long offset)
bool load_image(IntegralImageData &img, IntegralImageParams ¶ms, const char *filename, bool normalize=false)
void load_images2(IntegralImagesType &out, const char *data_set, unsigned int &width, unsigned int &height)
load a training set using a data_set file. fill the vector with (extended) integral image and return ...
il dato IntegralImage e' pressoche' equivalente a quello di RawData < uint32_t >
Definition: IntegralImageData.h:52
std::vector< std::pair< std::string, unsigned int * > > IntegralImagesType
vector of test images
Definition: Common.h:34
void release_images(IntegralImagesType &out)
release correctly an integral image (manually... or use shared_ptr/auto_ptr)
parameters required to access to integral image and to create features
Definition: IntegralImageData.h:31