Fawkes API  Fawkes Development Version
firevision::RhtCircleModel Class Reference

Randomized Hough-Transform circle model. More...

#include <>>

Inheritance diagram for firevision::RhtCircleModel:

Public Member Functions

 RhtCircleModel (void)
 Constructor. More...
 
virtual ~RhtCircleModel (void)
 Destructor. More...
 
std::string getName (void) const
 Get name of shape model. More...
 
int parseImage (unsigned char *buffer, ROI *roi)
 Parse image for given ROI. More...
 
int getShapeCount (void) const
 Get number of shapes. More...
 
CirclegetShape (int id) const
 Get specific shape. More...
 
CirclegetMostLikelyShape (void) const
 Get best candidate. More...
 
- Public Member Functions inherited from firevision::ShapeModel
virtual ~ShapeModel ()
 Virtual empty destructor. More...
 

Detailed Description

Randomized Hough-Transform circle model.

Definition at line 43 of file rht_circle.h.

Constructor & Destructor Documentation

◆ RhtCircleModel()

firevision::RhtCircleModel::RhtCircleModel ( void  )

Constructor.

Definition at line 55 of file rht_circle.cpp.

◆ ~RhtCircleModel()

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

Destructor.

Definition at line 61 of file rht_circle.cpp.

Member Function Documentation

◆ getMostLikelyShape()

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.

References fawkes::upoint_t::x, firevision::center_in_roi_t::x, fawkes::upoint_t::y, and firevision::center_in_roi_t::y.

Referenced by getName().

◆ getName()

std::string firevision::RhtCircleModel::getName ( void  ) const
inlinevirtual

Get name of shape model.

Returns
name of shape model.

Implements firevision::ShapeModel.

Definition at line 55 of file rht_circle.h.

References getMostLikelyShape(), getShape(), getShapeCount(), and parseImage().

◆ getShape()

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

Get specific shape.

Parameters
idshape ID
Returns
shape, do NOT free!

Implements firevision::ShapeModel.

Definition at line 262 of file rht_circle.cpp.

Referenced by getName().

◆ getShapeCount()

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.

Referenced by getName().

◆ parseImage()

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

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