libeblearntools
|
A class capable of extracting pascal format bounding boxes from xml files. More...
#include <pascal_xml.h>
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) |
A class capable of extracting pascal format bounding boxes from xml files.
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.
filtered | This 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.
cropr | If image is cropped to cropr, adjust coordinates of objects in the image, do nothing if NULL. |
ignore | If true, object is not used as sample. |