RhtCircleModel Class Reference
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. | |
Detailed Description
Randomized Hough-Transform circle model.Definition at line 38 of file rht_circle.h.
Constructor & Destructor Documentation
| RhtCircleModel::RhtCircleModel | ( | void | ) |
| RhtCircleModel::~RhtCircleModel | ( | void | ) | [virtual] |
Member Function Documentation
| Circle * RhtCircleModel::getMostLikelyShape | ( | void | ) | const [virtual] |
Get best candidate.
- Returns:
- best candidate shape, do not free.
Implements ShapeModel.
Definition at line 267 of file rht_circle.cpp.
| std::string RhtCircleModel::getName | ( | void | ) | const [inline, virtual] |
Get name of shape model.
- Returns:
- name of shape model.
Implements ShapeModel.
Definition at line 50 of file rht_circle.h.
| Circle * RhtCircleModel::getShape | ( | int | id | ) | const [virtual] |
Get specific shape.
- Parameters:
-
id shape ID
- Returns:
- shape, do NOT free!
Implements ShapeModel.
Definition at line 256 of file rht_circle.cpp.
| int RhtCircleModel::getShapeCount | ( | void | ) | const [virtual] |
Get number of shapes.
- Returns:
- number of shapes.
Implements ShapeModel.
Definition at line 250 of file rht_circle.cpp.
| int 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 ShapeModel.
Definition at line 66 of file rht_circle.cpp.
References RhtAccumulator::accumulate(), Circle::count, Circle::fitCircle(), ROI::get_roi_buffer_start(), RhtAccumulator::getMax(), ROI::height, ROI::line_step, RhtAccumulator::reset(), ROI::width, center_in_roi_t::x, and center_in_roi_t::y.
The documentation for this class was generated from the following files:
- src/firevision/models/shape/rht_circle.h
- src/firevision/models/shape/rht_circle.cpp

