X-Boost  2.3.8
Classes | Functions | Variables
SourceDataSet.h File Reference

declare the SourceDataSet template class More...

#include "IO/pnmio.h"
#include "IO/datasetin.h"
#include "Image.h"
#include "DataSet.h"
#include "Utility/ImageUtils.h"
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  SourceDataSet< TPreprocessorType, Aggregator >
 

Functions

template<class DataSetType >
bool RandomExtract (DataSetType &set, const ImageHandle &img, const size &set_geometry, int nRand, const std::vector< datasetobject > &object)
 
template<class DataSetType >
bool LoadSet (DataSetType &set, datasetin &in, const size &sz, int nRand)
 some parameters used in LoadSet More...
 

Variables

int frameidx
 

Detailed Description

declare the SourceDataSet template class

Function Documentation

template<class DataSetType >
bool LoadSet ( DataSetType &  set,
datasetin in,
const size sz,
int  nRand 
)

some parameters used in LoadSet

Load a Set TODO: move in an another file TODO: potrebbe essere utile caricare i dati delle immagini coinvolte (width height) e salvare se e' un potenziale immagine di test per selezionare le immagini comunque utili poi per la fase di bootstrap dei negativi

template<class DataSetType >
bool RandomExtract ( DataSetType &  set,
const ImageHandle img,
const size set_geometry,
int  nRand,
const std::vector< datasetobject > &  object 
)

process a single octave/scale and extract nRand not colliding object of size set_geometry The object are directly imported in the set