libeblearntools
|
#include <pascalbg_dataset.h>
Public Member Functions | |
pascalbg_dataset (const char *name, const char *inroot, const char *outdir, uint max_folders=1, bool ignore_diff=true, bool ignore_trunc=false, bool ignore_occl=false, const char *annotations=NULL, const char *tmpout=NULL) | |
virtual | ~pascalbg_dataset () |
Destructor. | |
virtual bool | extract () |
Extract data from files into dataset. | |
Protected Attributes | |
uint | max_folders |
The pascalbg_dataset class extract background patches from a dataset of type PASCAL.
ebl::pascalbg_dataset< Tdata >::pascalbg_dataset | ( | const char * | name, |
const char * | inroot, | ||
const char * | outdir, | ||
uint | max_folders = 1 , |
||
bool | ignore_diff = true , |
||
bool | ignore_trunc = false , |
||
bool | ignore_occl = false , |
||
const char * | annotations = NULL , |
||
const char * | tmpout = NULL |
||
) |
Initialize the dataset's name and other internal variables, but does not allocate data matrices, user must call alloc for that effect. outdims are the target output dimensions of each sample. inroot is the root directory from which we extract data. ignore_diff ignores difficult objects if true.