#include <bvgl_labelme_parser.h>
Public Member Functions | |
bvgl_labelme_parser () | |
bvgl_labelme_parser (vcl_string &filename) | |
~bvgl_labelme_parser (void) | |
vcl_string | image_name () |
vcl_vector< vcl_string > & | obj_names () |
vcl_vector< vgl_polygon < double > > & | polygons () |
Private Member Functions | |
virtual void | startElement (const XML_Char *name, const XML_Char **atts) |
Start Element needs to parse the following tags. | |
virtual void | endElement (const XML_Char *name) |
virtual void | charData (const XML_Char *s, int len) |
Private Attributes | |
vcl_vector< vgl_polygon< double > > | polygons_ |
vcl_vector< vgl_point_2d < double > > | pts_ |
double | x_ |
double | y_ |
vcl_vector< vcl_string > | obj_names_ |
vcl_string | image_name_ |
vcl_string | active_tag_ |
Definition at line 46 of file bvgl_labelme_parser.h.
bvgl_labelme_parser::bvgl_labelme_parser | ( | ) | [inline] |
Definition at line 49 of file bvgl_labelme_parser.h.
bvgl_labelme_parser::bvgl_labelme_parser | ( | vcl_string & | filename | ) |
Definition at line 14 of file bvgl_labelme_parser.cxx.
bvgl_labelme_parser::~bvgl_labelme_parser | ( | void | ) | [inline] |
Definition at line 51 of file bvgl_labelme_parser.h.
void bvgl_labelme_parser::charData | ( | const XML_Char * | s, |
int | len | ||
) | [private, virtual] |
Definition at line 68 of file bvgl_labelme_parser.cxx.
void bvgl_labelme_parser::endElement | ( | const XML_Char * | name | ) | [private, virtual] |
Definition at line 51 of file bvgl_labelme_parser.cxx.
vcl_string bvgl_labelme_parser::image_name | ( | ) | [inline] |
Definition at line 54 of file bvgl_labelme_parser.h.
vcl_vector<vcl_string>& bvgl_labelme_parser::obj_names | ( | ) | [inline] |
Definition at line 58 of file bvgl_labelme_parser.h.
vcl_vector<vgl_polygon<double> >& bvgl_labelme_parser::polygons | ( | ) | [inline] |
Definition at line 62 of file bvgl_labelme_parser.h.
void bvgl_labelme_parser::startElement | ( | const XML_Char * | name, |
const XML_Char ** | atts | ||
) | [private, virtual] |
Start Element needs to parse the following tags.
#define ANNOTATION "annotation" #define FILENAME_TAG "filename" #define FOLDER_TAG "folder" #define OBJECT_TAG "object" #define NAME_TAG "name" #define POLYTON_TAG "polygon" #define POINT_TAG "pt" #define X_TAG "x" #define Y_TAG "y"
Definition at line 40 of file bvgl_labelme_parser.cxx.
vcl_string bvgl_labelme_parser::active_tag_ [private] |
Definition at line 78 of file bvgl_labelme_parser.h.
vcl_string bvgl_labelme_parser::image_name_ [private] |
Definition at line 75 of file bvgl_labelme_parser.h.
vcl_vector<vcl_string> bvgl_labelme_parser::obj_names_ [private] |
Definition at line 74 of file bvgl_labelme_parser.h.
vcl_vector<vgl_polygon<double> > bvgl_labelme_parser::polygons_ [private] |
Definition at line 70 of file bvgl_labelme_parser.h.
vcl_vector<vgl_point_2d<double> > bvgl_labelme_parser::pts_ [private] |
Definition at line 71 of file bvgl_labelme_parser.h.
double bvgl_labelme_parser::x_ [private] |
Definition at line 72 of file bvgl_labelme_parser.h.
double bvgl_labelme_parser::y_ [private] |
Definition at line 72 of file bvgl_labelme_parser.h.