mimas::pgh_2dobject Class Reference

Pairwise model representation. More...

#include <pgh_2dobject.h>

Inheritance diagram for mimas::pgh_2dobject:

Inheritance graph
[legend]
Collaboration diagram for mimas::pgh_2dobject:

Collaboration graph
[legend]
List of all members.

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_listgetPghList (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)

Detailed Description

Pairwise model representation.

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");

Author:
Stuart Meikle (stu@stumeikle.org)
Date:
Thu May 11 13:05:23 2000
Added new addModel function
    createFromPgmFile(char *pgmfilename , const char *modelname )
Author:
bpa
Date:
Tue Apr 17 13:49:36 BST 2001

Definition at line 44 of file pgh_2dobject.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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   ) 


Member Function Documentation

void mimas::pgh_2dobject::deleteLineInfo ( void   )  [protected]

void mimas::pgh_2dobject::init ( void   ) 

Set variables to default values (only called by constructor).

Referenced by pgh_2dobject().

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::createFromImage ( image< int > &  imagein  ) 

void mimas::pgh_2dobject::createFromPolyFile ( char *  polyfilename  ) 

void mimas::pgh_2dobject::createFromPolyFile ( char *  polyfilename,
double cx,
double cy 
)

void mimas::pgh_2dobject::createFromPgmFile ( char *  pgmfilename,
double cx,
double cy 
)

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 
)

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]


Member Data Documentation

line_ptr_list_ptr mimas::pgh_2dobject::poly_data_GUI

Definition at line 75 of file pgh_2dobject.h.

double mimas::pgh_2dobject::canny_sigma

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.

double mimas::pgh_2dobject::canny_precision

see canny_tool.h

Definition at line 85 of file pgh_2dobject.h.

double mimas::pgh_2dobject::canny_lowthre

see canny_tool.h

Definition at line 86 of file pgh_2dobject.h.

double mimas::pgh_2dobject::canny_upthre

see canny_tool.h

Definition at line 87 of file pgh_2dobject.h.

int mimas::pgh_2dobject::canny_lenthre

see canny_tool.h

Definition at line 88 of file pgh_2dobject.h.

int mimas::pgh_2dobject::roi_lx

region of interest in the incoming image, lower x

Definition at line 91 of file pgh_2dobject.h.

int mimas::pgh_2dobject::roi_ly

region of interest in the incoming image, lower y

Definition at line 92 of file pgh_2dobject.h.

int mimas::pgh_2dobject::roi_ux

region of interest in the incoming image, upper x

Definition at line 93 of file pgh_2dobject.h.

int mimas::pgh_2dobject::roi_uy

region of interest in the incoming image, upper y

Definition at line 94 of file pgh_2dobject.h.

pgh_type mimas::pgh_2dobject::pgh_pairs_type

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.

double mimas::pgh_2dobject::pgh_dbin_max

see pgh.h

Definition at line 102 of file pgh_2dobject.h.

double mimas::pgh_2dobject::pgh_dbin_size

see pgh.h

Definition at line 103 of file pgh_2dobject.h.

double mimas::pgh_2dobject::pgh_dist_ramp

see pgh.h

Definition at line 104 of file pgh_2dobject.h.

int mimas::pgh_2dobject::pgh_num_abin

see pgh.h

Definition at line 105 of file pgh_2dobject.h.

double mimas::pgh_2dobject::pgh_angle_sigma

see pgh.h

Definition at line 106 of file pgh_2dobject.h.

double mimas::pgh_2dobject::min_line_length

lines under this length will not be considered

Definition at line 109 of file pgh_2dobject.h.

Vector mimas::pgh_2dobject::ref_point_displ

object reference point (displacement from its centroid), added by fbc 5.12.2001

Definition at line 111 of file pgh_2dobject.h.

int mimas::pgh_2dobject::track_roi_lx

object tracking region (displacement from its ref. point), lower x

Definition at line 113 of file pgh_2dobject.h.

int mimas::pgh_2dobject::track_roi_ly

object tracking region (displacement from its ref. point), lower y

Definition at line 114 of file pgh_2dobject.h.

int mimas::pgh_2dobject::track_roi_ux

object tracking region (displacement from its ref. point), upper x

Definition at line 115 of file pgh_2dobject.h.

int mimas::pgh_2dobject::track_roi_uy

object tracking region (displacement from its ref. point), upper y

Definition at line 116 of file pgh_2dobject.h.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:41 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...