Circle Class Reference
Circle shape. More...
#include <models/shape/circle.h>

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 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. | |
Detailed Description
Circle shape.Definition at line 40 of file circle.h.
Constructor & Destructor Documentation
| Circle::Circle | ( | ) |
Constructor.
Definition at line 36 of file circle.cpp.
References center, count, radius, center_in_roi_t::x, and center_in_roi_t::y.
| Circle::Circle | ( | const center_in_roi_t & | c, | |
| float | r, | |||
| int | n = 0 | |||
| ) |
Constructor.
- Parameters:
-
c center r radius n number of pixels
Definition at line 48 of file circle.cpp.
Member Function Documentation
| void Circle::fitCircle | ( | std::vector< fawkes::point_t > & | points | ) |
Fit circle.
Fit a circle through the given points.
- Parameters:
-
points points to fit circle through.
Definition at line 70 of file circle.cpp.
References center, count, radius, center_in_roi_t::x, fawkes::point_t::x, center_in_roi_t::y, and fawkes::point_t::y.
Referenced by RhtCircleModel::parseImage(), and RcdCircleModel::parseImage().
| bool Circle::isClose | ( | unsigned int | in_roi_x, | |
| unsigned int | in_roi_y | |||
| ) | [virtual] |
Check if the given point is close to the shape.
- Parameters:
-
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 Shape.
Definition at line 122 of file circle.cpp.
References center, margin, radius, center_in_roi_t::x, and center_in_roi_t::y.
| void Circle::printToStream | ( | std::ostream & | stream | ) |
Print info.
- Parameters:
-
stream stream to print to
Definition at line 59 of file circle.cpp.
References center, count, radius, center_in_roi_t::x, and center_in_roi_t::y.
| void Circle::setMargin | ( | unsigned int | margin | ) | [virtual] |
Set margin around shape.
- Parameters:
-
margin margin
Implements Shape.
Definition at line 115 of file circle.cpp.
Member Data Documentation
Center of object in ROI.
Definition at line 55 of file circle.h.
Referenced by FittedCircle::addPoint(), Circle(), FittedCircle::distanceTo(), fitCircle(), FitAccum::getCircle(), isClose(), and printToStream().
| int Circle::count |
Number of pixels.
Definition at line 59 of file circle.h.
Referenced by Circle(), fitCircle(), FitAccum::getCircle(), RhtCircleModel::parseImage(), RcdCircleModel::parseImage(), and printToStream().
| unsigned int Circle::margin |
| float Circle::radius |
Radius of object.
Definition at line 57 of file circle.h.
Referenced by FittedCircle::addPoint(), Circle(), FittedCircle::distanceTo(), fitCircle(), FitAccum::getCircle(), isClose(), and printToStream().
The documentation for this class was generated from the following files:
- src/firevision/models/shape/circle.h
- src/firevision/models/shape/circle.cpp

