X-Boost  2.3.8
Typedefs | Functions
Common.h File Reference

some common function to deal with images and training set More...

#include "IntegralImage.h"
#include <vector>
#include <string>
#include <Descriptor/IntegralImageData.h>

Go to the source code of this file.

Typedefs

typedef std::vector< std::pair
< std::string, unsigned int * > > 
IntegralImagesType
 vector of test images
 

Functions

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 width amd height of images
 
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 width amd height of images
 
bool load_image (IntegralImageData &img, IntegralImageParams &params, const char *filename, bool normalize=false)
 
void add_offset (IntegralImagesType &out, const IntegralImagesType &src, long offset)
 
void release_images (IntegralImagesType &out)
 release correctly an integral image (manually... or use shared_ptr/auto_ptr) More...
 

Detailed Description

some common function to deal with images and training set

Function Documentation

void add_offset ( IntegralImagesType out,
const IntegralImagesType src,
long  offset 
)

create a new integral image list with a precomputed offset

bool load_image ( IntegralImageData img,
IntegralImageParams params,
const char *  filename,
bool  normalize = false 
)

Load a single image

Returns
true if file exist
void release_images ( IntegralImagesType out)

release correctly an integral image (manually... or use shared_ptr/auto_ptr)

batch compute response of a Classifier on all pattern