Classes | |
struct | Line |
struct | ModelInfo |
Public Member Functions | |
virtual | ~PGH () |
Destructor. | |
void | addModel (const std::vector< Line > &lines, int id) |
Add a model to search for. | |
Image< float > | getGeometricHistogram (const std::vector< Line > &lines) |
Create a geometric historgram. | |
int | matchModel (const std::vector< Line > &lines) |
Find the best match model. | |
double | cmpHist (const Image< float > &hist1, const Image< float > &hist2) |
Compage two histograms. |
Definition at line 51 of file PGH.H.
void PGH::addModel | ( | const std::vector< Line > & | lines, | |
int | id | |||
) |
Compage two histograms.
Definition at line 91 of file PGH.C.
References sum().
Referenced by matchModel().
Image< float > PGH::getGeometricHistogram | ( | const std::vector< Line > & | lines | ) |
Create a geometric historgram.
Definition at line 96 of file PGH.C.
References Point2D< T >::i, and ZEROS.
Referenced by addModel(), and matchModel().
int PGH::matchModel | ( | const std::vector< Line > & | lines | ) |
Find the best match model.
Definition at line 74 of file PGH.C.
References cmpHist(), and getGeometricHistogram().