LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::gHoughTransform Class Reference

The Generalized-Hough-Transform. More...

#include <ltiGHoughTransform.h>

Inheritance diagram for lti::gHoughTransform:
Inheritance graph
[legend]
Collaboration diagram for lti::gHoughTransform:
Collaboration graph
[legend]

List of all members.

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))
gHoughTransformcopy (const gHoughTransform &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

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

See also:
lti::orientedHLTransform

Constructor & Destructor Documentation

lti::gHoughTransform::gHoughTransform (  ) 

default constructor

lti::gHoughTransform::gHoughTransform ( const gHoughTransform other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::gHoughTransform::~gHoughTransform (  )  [virtual]

destructor


Member Function Documentation

bool lti::gHoughTransform::apply ( const tpointList< int > &  contour,
const channel src,
std::list< vector< float > > &  dest 
)

Apply.

Parameters:
contour,: tpointList of object which is to be found later on
src,: find object specified by contour in channel src
dest,: list containing vectors, that each represent a found object by five entries: shift_x, shift_y,size factor,rotation,relevance
bool lti::gHoughTransform::apply ( const channel sample,
const channel src,
std::list< vector< float > > &  dest 
)

Apply.

Parameters:
sample,: channel of object which is to be found later on
src,: find object specified by sample in channel src
dest,: list containing vectors, that each represent a found object by five entries: shift_x, shift_y,size factor,rotation,relevance
bool lti::gHoughTransform::apply ( const channel src,
std::list< vector< float > > &  dest 
)

Apply.

Parameters:
src,: find object specified by use in channel src
dest,: list containing vectors, that each represent a found object by five entries: shift_x, shift_y,size factor,rotation,relevance
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.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.

bool lti::gHoughTransform::draw ( const std::list< vector< float > > &  src,
image dest,
const rgbPixel color = rgbPixel(255, 0, 0) 
)

Draw.

Parameters:
src,: list containing vectors, that each represent a found object by five entries: shift_x, shift_y,size factor,rotation,relevance and is computed by apply-method
dest,: draw into this image
color,: use this color for drawing
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  ) 
Parameters:
src tpointList of object which is to be found later on
bool lti::gHoughTransform::use ( const channel src  ) 
Parameters:
src channel of object which is to be found later on

The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:21 2010 for LTI-Lib by Doxygen 1.6.1