Basic Image AlgorithmS Library
2.8.0
|
Scans a circle using Bresenham's integer arithmetic algorithm. More...
#include <Base/ImageUtils/BresenhamCircle.hh>
Public Member Functions | |
BresenhamCircle () | |
Default constructor. More... | |
BresenhamCircle (int center[2], int radius) | |
Constructor. More... | |
bool | GetNext (int next[2]) |
Returns the coordinate of the next point on the circle. More... | |
void | Init (int center[2], int radius) |
Initialises this BresenhamCircle with new center and radius. More... | |
~BresenhamCircle () | |
Destructor. More... | |
Protected Attributes | |
int | center_ [2] |
int | count_ |
int | current_ [2] |
int | d_ |
int | deltaE_ |
int | deltaSE_ |
bool | initialized_ |
int | radius_ |
Scans a circle using Bresenham's integer arithmetic algorithm.
Definition at line 43 of file BresenhamCircle.hh.
|
inline |
Default constructor.
You have to call Init() by yourself before calling GetNext().
Definition at line 51 of file BresenhamCircle.hh.
|
inline |
Constructor.
center | the center for this BresenhamCircle |
radius | the radius for this BresenhamCircle |
Definition at line 64 of file BresenhamCircle.hh.
References Init().
|
inline |
Destructor.
Definition at line 71 of file BresenhamCircle.hh.
|
inline |
Returns the coordinate of the next point on the circle.
Can be called in a while loop:
int nextCoords[2]; while (bresCirc.GetNext(nextCoords)){ // draw nextCoords in image }
next | the returned coordinate of the next point on the circle |
Definition at line 125 of file BresenhamCircle.hh.
References center_, count_, current_, d_, deltaE_, deltaSE_, and initialized_.
Referenced by BIAS::ImageDraw< StorageType >::CircleCenter(), BIAS::CylindricalRectification< InputStorageType, OutputStorageType >::DetermineCylindricCameraBoundriesSpherical_(), and BIAS::ColorHistogram< StorageType >::GenerateCircleHist().
|
inline |
Initialises this BresenhamCircle with new center and radius.
center | the new center for this BresenhamCircle |
radius | the new radius for this BresenhamCircle |
Definition at line 84 of file BresenhamCircle.hh.
References center_, count_, current_, d_, deltaE_, deltaSE_, initialized_, and radius_.
Referenced by BresenhamCircle(), and BIAS::ImageDraw< StorageType >::CircleCenter().
|
protected |
Definition at line 203 of file BresenhamCircle.hh.
|
protected |
Definition at line 209 of file BresenhamCircle.hh.
|
protected |
Definition at line 205 of file BresenhamCircle.hh.
|
protected |
Definition at line 206 of file BresenhamCircle.hh.
|
protected |
Definition at line 207 of file BresenhamCircle.hh.
|
protected |
Definition at line 208 of file BresenhamCircle.hh.
|
protected |
Definition at line 212 of file BresenhamCircle.hh.
|
protected |
Definition at line 204 of file BresenhamCircle.hh.
Referenced by Init().