|
Fawkes API
Fawkes Development Version
|
#include <>>

Public Member Functions | |
| Circle () | |
| Constructor. | |
| Circle (const center_in_roi_t &c, float r, int n=0) | |
| Constructor. | |
| void | printToStream (std::ostream &stream) |
| Print info. | |
| void | setMargin (unsigned int margin) |
| Set margin around shape. | |
| bool | isClose (unsigned int in_roi_x, unsigned int in_roi_y) |
| Check if the given point is close to the shape. | |
| void | fitCircle (std::vector< fawkes::point_t > &points) |
| Fit circle. | |
Public Member Functions inherited from firevision::Shape | |
| virtual | ~Shape () |
| Virtual empty destructor. | |
Public Attributes | |
| center_in_roi_t | center |
| Center of object in ROI. | |
| float | radius |
| Radius of object. | |
| int | count |
| Number of pixels. | |
| unsigned int | margin |
| Margin around shape. | |
| firevision::Circle::Circle | ( | ) |
Constructor.
Definition at line 41 of file circle.cpp.
| firevision::Circle::Circle | ( | const center_in_roi_t & | c, |
| float | r, | ||
| int | n = 0 |
||
| ) |
Constructor.
| c | center |
| r | radius |
| n | number of pixels |
Definition at line 53 of file circle.cpp.
| void firevision::Circle::fitCircle | ( | std::vector< fawkes::point_t > & | points | ) |
Fit circle.
Fit a circle through the given points.
| points | points to fit circle through. |
Definition at line 75 of file circle.cpp.
References fawkes::point_t::x, and fawkes::point_t::y.
Referenced by firevision::RhtCircleModel::parseImage(), and firevision::RcdCircleModel::parseImage().
|
virtual |
Check if the given point is close to the shape.
| in_roi_x | x coordinate of point in the same ROI as the shape |
| in_roi_y | y coordinate of point in the same ROI as the shape |
Implements firevision::Shape.
Definition at line 127 of file circle.cpp.
| void firevision::Circle::printToStream | ( | std::ostream & | stream | ) |
Print info.
| stream | stream to print to |
Definition at line 64 of file circle.cpp.
References firevision::center_in_roi_t::x.
|
virtual |
Set margin around shape.
| margin | margin |
Implements firevision::Shape.
Definition at line 120 of file circle.cpp.
| center_in_roi_t firevision::Circle::center |
Center of object in ROI.
Definition at line 60 of file circle.h.
Referenced by firevision::FittedCircle::addPoint(), firevision::FittedCircle::distanceTo(), and firevision::FitAccum::getCircle().
| int firevision::Circle::count |
Number of pixels.
Definition at line 64 of file circle.h.
Referenced by firevision::FitAccum::getCircle(), firevision::RhtCircleModel::parseImage(), and firevision::RcdCircleModel::parseImage().
| unsigned int firevision::Circle::margin |
| float firevision::Circle::radius |
Radius of object.
Definition at line 62 of file circle.h.
Referenced by firevision::FittedCircle::addPoint(), firevision::FittedCircle::distanceTo(), and firevision::FitAccum::getCircle().