Fawkes API
Fawkes Development Version
|
Randomized Hough-Transform circle model. More...
#include <>>
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... | |
Circle * | getShape (int id) const |
Get specific shape. More... | |
Circle * | getMostLikelyShape (void) const |
Get best candidate. More... | |
![]() | |
virtual | ~ShapeModel () |
Virtual empty destructor. More... | |
Randomized Hough-Transform circle model.
Definition at line 43 of file rht_circle.h.
firevision::RhtCircleModel::RhtCircleModel | ( | void | ) |
Constructor.
Definition at line 55 of file rht_circle.cpp.
|
virtual |
Destructor.
Definition at line 61 of file rht_circle.cpp.
|
virtual |
Get best candidate.
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().
|
inlinevirtual |
Get name of shape model.
Implements firevision::ShapeModel.
Definition at line 55 of file rht_circle.h.
References getMostLikelyShape(), getShape(), getShapeCount(), and parseImage().
|
virtual |
Get specific shape.
id | shape ID |
Implements firevision::ShapeModel.
Definition at line 262 of file rht_circle.cpp.
Referenced by getName().
|
virtual |
Get number of shapes.
Implements firevision::ShapeModel.
Definition at line 256 of file rht_circle.cpp.
Referenced by getName().
|
virtual |
Parse image for given ROI.
buffer | image buffer |
roi | ROI |
Implements firevision::ShapeModel.
Definition at line 72 of file rht_circle.cpp.
References firevision::Circle::count, firevision::Circle::fitCircle(), firevision::ROI::get_roi_buffer_start(), firevision::ROI::height, firevision::ROI::line_step, firevision::ROI::width, firevision::center_in_roi_t::x, and firevision::center_in_roi_t::y.
Referenced by getName().