firevision::RhtCircleModel Class Reference

Randomized Hough-Transform circle model. More...

#include <models/shape/rht_circle.h>

Inheritance diagram for firevision::RhtCircleModel:

[legend]
List of all members.

Public Member Functions

 RhtCircleModel (void)
 Constructor.
virtual ~RhtCircleModel (void)
 Destructor.
std::string getName (void) const
 Get name of shape model.
int parseImage (unsigned char *buffer, ROI *roi)
 Parse image for given ROI.
int getShapeCount (void) const
 Get number of shapes.
CirclegetShape (int id) const
 Get specific shape.
CirclegetMostLikelyShape (void) const
 Get best candidate.

Detailed Description

Randomized Hough-Transform circle model.

Definition at line 43 of file rht_circle.h.


Constructor & Destructor Documentation

firevision::RhtCircleModel::RhtCircleModel ( void   ) 

Constructor.

Definition at line 55 of file rht_circle.cpp.

firevision::RhtCircleModel::~RhtCircleModel ( void   )  [virtual]

Destructor.

Definition at line 61 of file rht_circle.cpp.


Member Function Documentation

Circle * firevision::RhtCircleModel::getMostLikelyShape ( void   )  const [virtual]

Get best candidate.

Returns:
best candidate shape, do not free.

Implements firevision::ShapeModel.

Definition at line 273 of file rht_circle.cpp.

std::string firevision::RhtCircleModel::getName ( void   )  const [inline, virtual]

Get name of shape model.

Returns:
name of shape model.

Implements firevision::ShapeModel.

Definition at line 55 of file rht_circle.h.

Circle * firevision::RhtCircleModel::getShape ( int  id  )  const [virtual]

Get specific shape.

Parameters:
id shape ID
Returns:
shape, do NOT free!

Implements firevision::ShapeModel.

Definition at line 262 of file rht_circle.cpp.

int firevision::RhtCircleModel::getShapeCount ( void   )  const [virtual]

Get number of shapes.

Returns:
number of shapes.

Implements firevision::ShapeModel.

Definition at line 256 of file rht_circle.cpp.

int firevision::RhtCircleModel::parseImage ( unsigned char *  buffer,
ROI roi 
) [virtual]

Parse image for given ROI.

Parameters:
buffer image buffer
roi ROI
Returns:
number of shapes found

Implements firevision::ShapeModel.

Definition at line 72 of file rht_circle.cpp.

References firevision::RhtAccumulator::accumulate(), firevision::Circle::count, firevision::Circle::fitCircle(), firevision::ROI::get_roi_buffer_start(), firevision::RhtAccumulator::getMax(), firevision::ROI::height, firevision::ROI::line_step, firevision::RhtAccumulator::reset(), firevision::ROI::width, firevision::center_in_roi_t::x, and firevision::center_in_roi_t::y.


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:33:04 2011 for Fawkes API by  doxygen 1.4.7