#include <pgh_2dobject.h>
Inheritance diagram for mimas::pgh_2dobject:
Public Types | |
typedef std::string | string |
typedef boost::numeric::ublas::vector< double > | Vector |
Public Member Functions | |
pgh_2dobject (void) | |
The constructor. | |
~pgh_2dobject (void) | |
void | init (void) |
Set variables to default values (only called by constructor). | |
void | clear (void) |
string | getName (void) |
int | getNumPghs (void) |
pgh_type | getPghType (void) |
void | setName (const std::string &n) |
pgh_ptr_list * | getPghList (void) |
line_ptr_list_ptr | getListofLines (void) |
line_ptr_list_ptr | getListofLinesGUI (void) |
void | createFromLines (const line_ptr_list &geom) throw (mimasexception) |
void | createFromLines (const line_ptr_list &geom, double *cx, double *cy) throw (mimasexception) |
void | createFromPgmFile (char *pgmfilename) |
void | createFromImage (image< int > &imagein) |
void | createFromPolyFile (char *polyfilename) |
void | createFromPolyFile (char *polyfilename, double *cx, double *cy) |
void | createFromPgmFile (char *pgmfilename, double *cx, double *cy) |
void | createFromPgmFile (char *pgmfilename, double *cx, double *cy, char *polyfilename) |
void | createFromImage (image< int > &imagein, double *cx, double *cy) |
void | createFromImage (image< int > &imagein, double *cx, double *cy, char *polyfilename) |
int | getWidth (void) |
int | getHeight (void) |
void | saveObjectParameters (const char *fileName) |
void | loadObjectParameters (const char *fileName) |
Public Attributes | |
line_ptr_list_ptr | poly_data_GUI |
double | canny_sigma |
models can be formed from images. see canny_tool.h | |
double | canny_precision |
see canny_tool.h | |
double | canny_lowthre |
see canny_tool.h | |
double | canny_upthre |
see canny_tool.h | |
int | canny_lenthre |
see canny_tool.h | |
int | roi_lx |
region of interest in the incoming image, lower x | |
int | roi_ly |
region of interest in the incoming image, lower y | |
int | roi_ux |
region of interest in the incoming image, upper x | |
int | roi_uy |
region of interest in the incoming image, upper y | |
pgh_type | pgh_pairs_type |
parameters used during the creation of the 2bobjects constituent pghs passed to pgh. see pgh.h | |
double | pgh_dbin_max |
see pgh.h | |
double | pgh_dbin_size |
see pgh.h | |
double | pgh_dist_ramp |
see pgh.h | |
int | pgh_num_abin |
see pgh.h | |
double | pgh_angle_sigma |
see pgh.h | |
double | min_line_length |
lines under this length will not be considered | |
Vector | ref_point_displ |
object reference point (displacement from its centroid), added by fbc 5.12.2001 | |
int | track_roi_lx |
object tracking region (displacement from its ref. point), lower x | |
int | track_roi_ly |
object tracking region (displacement from its ref. point), lower y | |
int | track_roi_ux |
object tracking region (displacement from its ref. point), upper x | |
int | track_roi_uy |
object tracking region (displacement from its ref. point), upper y | |
Protected Member Functions | |
void | deleteLineInfo (void) |
void | storeObjectParams (std::ostream &stream) |
void | extractObjectParams (xml_reference< XalanElement > &docElement) |
Flat 2d objects with pairwise these objects store info as a series of pgh's. A representation of a 2d model. this is a list of PGHs, one created for each line in the original model. also included is the original line information, primarily for rendering purposes.
OK a real object is a set of histograms which describe a set of real lines. That's what this class is for. Eg. pgh_2dobject
my_dinoraur_template. Use it basically by doing the following:
pgh_2dobject my_dino_template; my_dino_template.createFromLines( set_of_lines ); my_dino_template.setName("Arthur_the_stegosaurus");
addModel
function createFromPgmFile(char *pgmfilename , const char *modelname )
Definition at line 44 of file pgh_2dobject.h.
typedef std::string mimas::pgh_2dobject::string |
Definition at line 47 of file pgh_2dobject.h.
typedef boost::numeric::ublas::vector< double > mimas::pgh_2dobject::Vector |
Definition at line 48 of file pgh_2dobject.h.
mimas::pgh_2dobject::pgh_2dobject | ( | void | ) | [inline] |
The constructor.
Definition at line 119 of file pgh_2dobject.h.
References init().
Here is the call graph for this function:
mimas::pgh_2dobject::~pgh_2dobject | ( | void | ) |
void mimas::pgh_2dobject::deleteLineInfo | ( | void | ) | [protected] |
void mimas::pgh_2dobject::init | ( | void | ) |
void mimas::pgh_2dobject::clear | ( | void | ) |
Reimplemented in mimas::pgh_scene.
string mimas::pgh_2dobject::getName | ( | void | ) |
int mimas::pgh_2dobject::getNumPghs | ( | void | ) |
pgh_type mimas::pgh_2dobject::getPghType | ( | void | ) |
void mimas::pgh_2dobject::setName | ( | const std::string & | n | ) |
pgh_ptr_list* mimas::pgh_2dobject::getPghList | ( | void | ) |
line_ptr_list_ptr mimas::pgh_2dobject::getListofLines | ( | void | ) |
line_ptr_list_ptr mimas::pgh_2dobject::getListofLinesGUI | ( | void | ) |
void mimas::pgh_2dobject::createFromLines | ( | const line_ptr_list & | geom | ) | throw (mimasexception) |
void mimas::pgh_2dobject::createFromLines | ( | const line_ptr_list & | geom, | |
double * | cx, | |||
double * | cy | |||
) | throw (mimasexception) |
void mimas::pgh_2dobject::createFromPgmFile | ( | char * | pgmfilename | ) |
void mimas::pgh_2dobject::createFromPolyFile | ( | char * | polyfilename | ) |
void mimas::pgh_2dobject::createFromPgmFile | ( | char * | pgmfilename, | |
double * | cx, | |||
double * | cy, | |||
char * | polyfilename | |||
) |
void mimas::pgh_2dobject::createFromImage | ( | image< int > & | imagein, | |
double * | cx, | |||
double * | cy, | |||
char * | polyfilename | |||
) |
int mimas::pgh_2dobject::getWidth | ( | void | ) | [inline] |
Definition at line 152 of file pgh_2dobject.h.
int mimas::pgh_2dobject::getHeight | ( | void | ) | [inline] |
Definition at line 153 of file pgh_2dobject.h.
void mimas::pgh_2dobject::saveObjectParameters | ( | const char * | fileName | ) |
void mimas::pgh_2dobject::loadObjectParameters | ( | const char * | fileName | ) |
void mimas::pgh_2dobject::storeObjectParams | ( | std::ostream & | stream | ) | [protected] |
void mimas::pgh_2dobject::extractObjectParams | ( | xml_reference< XalanElement > & | docElement | ) | [protected] |
Definition at line 75 of file pgh_2dobject.h.
models can be formed from images. see canny_tool.h
in this case edge strings must be extracted first. the following parameters specify the parameters which are passed to the canny detector for this first step.
Definition at line 84 of file pgh_2dobject.h.
parameters used during the creation of the 2bobjects constituent pghs passed to pgh. see pgh.h
Definition at line 101 of file pgh_2dobject.h.
object reference point (displacement from its centroid), added by fbc 5.12.2001
Definition at line 111 of file pgh_2dobject.h.
object tracking region (displacement from its ref. point), lower x
Definition at line 113 of file pgh_2dobject.h.
object tracking region (displacement from its ref. point), lower y
Definition at line 114 of file pgh_2dobject.h.
object tracking region (displacement from its ref. point), upper x
Definition at line 115 of file pgh_2dobject.h.
object tracking region (displacement from its ref. point), upper y
Definition at line 116 of file pgh_2dobject.h.