latest version v1.9 - last update 10 Apr 2010 |
The Generalized-Hough-Transform. More...
#include <ltiGHoughTransform.h>
Classes | |
class | parameters |
the parameters for the class houghTransform More... | |
Public Member Functions | |
gHoughTransform () | |
gHoughTransform (const gHoughTransform &other) | |
virtual | ~gHoughTransform () |
virtual const char * | getTypeName () const |
bool | use (const channel &src) |
bool | use (const tpointList< int > &src) |
bool | apply (const channel &src, std::list< vector< float > > &dest) |
bool | apply (const channel &sample, const channel &src, std::list< vector< float > > &dest) |
bool | apply (const tpointList< int > &contour, const channel &src, std::list< vector< float > > &dest) |
bool | draw (const std::list< vector< float > > &src, image &dest, const rgbPixel &color=rgbPixel(255, 0, 0)) |
gHoughTransform & | copy (const gHoughTransform &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
The Generalized-Hough-Transform.
The Generalized-Hough-Transform detects arbitrary shapes, which have to be specified before (by use()). It transforms the channel into a four dimensional parameter space (discretisation can be set in parameters). Therefore it requires a lot of storage and extensive computation. Peaks in parameter-space are searched and returned as result. The found object can be drawn back into the image by draw().
lti::gHoughTransform::gHoughTransform | ( | ) |
default constructor
lti::gHoughTransform::gHoughTransform | ( | const gHoughTransform & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::gHoughTransform::~gHoughTransform | ( | ) | [virtual] |
destructor
bool lti::gHoughTransform::apply | ( | const tpointList< int > & | contour, | |
const channel & | src, | |||
std::list< vector< float > > & | dest | |||
) |
virtual functor* lti::gHoughTransform::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
gHoughTransform& lti::gHoughTransform::copy | ( | const gHoughTransform & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::gHoughTransform::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::modifier.
virtual const char* lti::gHoughTransform::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("houghTransform")
Reimplemented from lti::modifier.
bool lti::gHoughTransform::use | ( | const tpointList< int > & | src | ) |
src | tpointList of object which is to be found later on |
bool lti::gHoughTransform::use | ( | const channel & | src | ) |