Randomized Hough-Transform circle model. More...
#include <models/shape/rht_circle.h>
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. | |
Circle * | getShape (int id) const |
Get specific shape. | |
Circle * | getMostLikelyShape (void) const |
Get best candidate. |
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.
firevision::RhtCircleModel::~RhtCircleModel | ( | void | ) | [virtual] |
Destructor.
Definition at line 61 of file rht_circle.cpp.
Circle * firevision::RhtCircleModel::getMostLikelyShape | ( | void | ) | const [virtual] |
Get best candidate.
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.
Implements firevision::ShapeModel.
Definition at line 55 of file rht_circle.h.
Circle * firevision::RhtCircleModel::getShape | ( | int | id | ) | const [virtual] |
Get specific shape.
id | shape ID |
Implements firevision::ShapeModel.
Definition at line 262 of file rht_circle.cpp.
int firevision::RhtCircleModel::getShapeCount | ( | void | ) | const [virtual] |
Get 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.
buffer | image buffer | |
roi | ROI |
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.