HoughLines Class Reference

VisionBehavior 's implementation of the Hough's transform to get lines in an image. More...

#include <houghlines.hh>

Inheritance diagram for HoughLines:

VisionBehavior< CvSeq >

List of all members.

Public Member Functions

 HoughLines (bool hack=false)
 if hack is set to true, only the lines longer than HACK_HEIGHT pixels are returned.
virtual ~HoughLines ()
virtual void writeOn (IplImage &img) const
 This function draws the results of the computations on the picture. It means that 'writeOn()' is called more often than 'compute()'.
virtual CvSeq & getResult ()
 Returns the results of the computations.
void setHack (bool)
 
  • hack: if true, only the lines longer than HACK_HEIGHT pixels are returned.


Private Member Functions

virtual void compute (const IplImage &img)
 Fullfill this function which would be called according to the delay of the Vision class.
virtual void emptyResult ()
void workOnLines ()
 called if hack is set to true
void freeItems ()

Private Attributes

CvSeq * result
CvMemStorage * storage
bool hack


Detailed Description

VisionBehavior 's implementation of the Hough's transform to get lines in an image.

Constructor & Destructor Documentation

HoughLines::HoughLines ( bool  hack = false  ) 

if hack is set to true, only the lines longer than HACK_HEIGHT pixels are returned.

HoughLines::~HoughLines (  )  [virtual]


Member Function Documentation

void HoughLines::writeOn ( IplImage &  img  )  const [virtual]

This function draws the results of the computations on the picture. It means that 'writeOn()' is called more often than 'compute()'.

Implements VisionBehavior< CvSeq >.

CvSeq & HoughLines::getResult (  )  [virtual]

Returns the results of the computations.

Implements VisionBehavior< CvSeq >.

void HoughLines::setHack ( bool  hack  ) 

void HoughLines::compute ( const IplImage &  img  )  [private, virtual]

Fullfill this function which would be called according to the delay of the Vision class.

Implements VisionBehavior< CvSeq >.

void HoughLines::emptyResult (  )  [private, virtual]

Implements VisionBehavior< CvSeq >.

void HoughLines::workOnLines (  )  [private]

called if hack is set to true

void HoughLines::freeItems (  )  [private]


Member Data Documentation

CvSeq* HoughLines::result [private]

CvMemStorage* HoughLines::storage [private]

bool HoughLines::hack [private]


The documentation for this class was generated from the following files:
Generated on Mon Dec 31 13:33:37 2007 for Vision by  doxygen 1.5.3