libeblearntools
ebl::pascal_xml Class Reference

A class capable of extracting pascal format bounding boxes from xml files. More...

#include <pascal_xml.h>

List of all members.

Static Public Member Functions

static bboxes get_bboxes (const string &xml_fname)
 Returns bboxes found in file 'xml_fname'.
static bboxes get_filtered_bboxes (const string &xml_fname, float minvisibility, float min_aspect_ratio, float max_aspect_ratio, idxdim &mindims, idxdim &minborders, vector< string > &included, bboxes &filtered)
static bool get_properties (const string &imgroot, const string &xmlfile, string &image_filename, string &image_fullname, string &folder, int &height, int &width, int &depth, vector< object * > &objs, rect< int > **cropr, bool ignored=false)

Detailed Description

A class capable of extracting pascal format bounding boxes from xml files.


Member Function Documentation

bboxes ebl::pascal_xml::get_filtered_bboxes ( const string &  xml_fname,
float  minvisibility,
float  min_aspect_ratio,
float  max_aspect_ratio,
idxdim &  mindims,
idxdim &  minborders,
vector< string > &  included,
bboxes &  filtered 
) [static]

Returns bboxes found in file 'xml_fname' and filtered with these parameters.

Parameters:
filteredThis will be filled with the rejected boxes.
bool ebl::pascal_xml::get_properties ( const string &  imgroot,
const string &  xmlfile,
string &  image_filename,
string &  image_fullname,
string &  folder,
int &  height,
int &  width,
int &  depth,
vector< object * > &  objs,
rect< int > **  cropr,
bool  ignored = false 
) [static]

Gets all properties from an xml file.

Parameters:
croprIf image is cropped to cropr, adjust coordinates of objects in the image, do nothing if NULL.
ignoreIf true, object is not used as sample.

The documentation for this class was generated from the following files: