Classes | |
struct | Acc |
struct | AccCmp |
struct | Feature |
struct | Model |
struct | RTable |
Public Member Functions | |
virtual | ~GHough () |
Destructor. | |
void | createInvRTable (const Image< byte > &img, const Image< float > &ang) |
Create an Inverient RTable. | |
RTable | createRTable (const Image< byte > &img, const Image< float > &ang, Point2D< float > &imgPos, int &numFeatures, Point2D< float > &imgLoc) |
Create an RTable. | |
RTable | createRTable (const std::vector< Feature > &features, Point2D< float > &imgPos, Point2D< float > &imgLoc) |
RTable | createRTable (const Image< byte > &img, const Image< float > &ang, Point2D< int > ¢er, int &numFeatures) |
Image< float > | getInvVotes (const Image< byte > &img, const Image< float > &ang) |
Get votes from an RTable. | |
long | getIndex (const std::vector< float > &values) |
std::vector< Acc > | getVotes (const Image< byte > &img, const Image< float > &ang) |
std::vector< Acc > | getVotes (const std::vector< Feature > &features) |
std::vector< Acc > | getVotes (int id, const RTable &rTable, const Image< byte > &img, const Image< float > &ang) |
std::vector< Acc > | getVotes (int id, const RTable &rTable, const std::vector< Feature > &features, float &maxVotes) |
std::vector< Acc > | getVotes2 (int id, const RTable &rTable, const std::vector< Feature > &features, float &maxVotes) |
std::vector< Acc > | getVotes (const Image< float > &img) |
std::vector< Acc > | getVotes (const Image< float > &img, const Image< float > &ori) |
Point2D< float > | addModel (int &id, const Image< byte > &img, const Image< float > &ang, Point3D< float > pos, Point3D< float > rot) |
Point2D< float > | addModel (int &id, int type, const std::vector< Feature > &features, Point3D< float > pos, Point3D< float > rot) |
void | addModel (int id, const Image< float > &img) |
Point2D< int > | addModel (int id, const std::vector< Point2D< int > > &polygon) |
void | setPosOffset (int id, Point3D< float > pos) |
void | writeTable (const char *filename) |
void | readTable (const char *filename) |
Point2D< float > | getModelImgPos (const int id) |
Point3D< float > | getModelRot (const int id) |
Point3D< float > | getModelPosOffset (const int id) |
int | getModelType (const int id) |
Image< PixRGB< byte > > | getRTableImg (const int id) |
uint | getNumFeatures (const int id) |
Image< float > | getAccImg (std::vector< GHough::Acc > &acc) |
Point2D< int > | findInvFeature (const int x, const int y, const Image< float > &img, const Image< float > &ang) |
void | trainSOFM () |
Definition at line 56 of file GHough.H.
Create an Inverient RTable.
Definition at line 1134 of file GHough.C.
References Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), Point2D< T >::i, and Point2D< T >::isValid().
GHough::RTable GHough::createRTable | ( | const Image< byte > & | img, | |
const Image< float > & | ang, | |||
Point2D< float > & | imgPos, | |||
int & | numFeatures, | |||
Point2D< float > & | imgLoc | |||
) |
Create an RTable.
Definition at line 286 of file GHough.C.
References Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), and Point2D< T >::i.
Get votes from an RTable.
Definition at line 1257 of file GHough.C.
References Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), Point2D< T >::isValid(), and ZEROS.