Basic Image AlgorithmS Library
2.8.0
|
Scans a line using Bresenhams integer arithmetic algorithm. More...
#include <Base/ImageUtils/Bresenham.hh>
Public Member Functions | |
Bresenham () | |
Bresenham (const int start[2], const int end[2]) | |
Bresenham (const unsigned int start[2], const unsigned int end[2]) | |
Bresenham (const double start[2], const double end[2]) | |
bool | GetNext (int next[2]) |
bool | GetNext (unsigned int next[2]) |
bool | GetNext (double next[2]) |
void | Init (const int start[2], const int end[2]) |
void | Init (const unsigned int start[2], const unsigned int end[2]) |
void | Init (const double start[2], const double end[2]) |
~Bresenham () | |
Protected Attributes | |
bool | _bInitialized |
double | _dDx |
double | _dDy |
enum TLineType | _eLineType |
int | _iDx |
int | _iDy |
int | _iEnd [2] |
long int | _iEps |
int | _iStart [2] |
EightWaySymmetry< int > | _iSym |
int | _iTransformedCurrent [2] |
int | _iTransformedEnd [2] |
int | _iTransformedStart [2] |
Scans a line using Bresenhams integer arithmetic algorithm.
Either Init() or the according constructor have to be called befor GetNext().
Definition at line 42 of file Bresenham.hh.
|
inline |
Definition at line 91 of file Bresenham.hh.
References _bInitialized.
|
inline |
Definition at line 101 of file Bresenham.hh.
References _bInitialized, and Init().
|
inline |
Definition at line 109 of file Bresenham.hh.
References _bInitialized, and Init().
|
inline |
Definition at line 117 of file Bresenham.hh.
References _bInitialized, and Init().
|
inline |
Definition at line 98 of file Bresenham.hh.
|
inline |
Definition at line 185 of file Bresenham.hh.
References _bInitialized, _eLineType, _iDx, _iDy, _iEps, _iSym, _iTransformedCurrent, _iTransformedEnd, and BIAS::EightWaySymmetry< T >::InverseTransform().
Referenced by BIAS::ImageDraw< StorageType >::Arrow(), BIAS::EpipolarLine::DrawDistortedLine(), GetNext(), BIAS::ImageDraw< StorageType >::Line(), and BIAS::ImageDraw< StorageType >::LineGrey().
|
inline |
Definition at line 63 of file Bresenham.hh.
References GetNext().
|
inline |
Definition at line 213 of file Bresenham.hh.
|
inline |
Definition at line 125 of file Bresenham.hh.
References _bInitialized, _dDx, _dDy, _eLineType, _iDx, _iDy, _iEnd, _iEps, _iStart, _iSym, _iTransformedCurrent, _iTransformedEnd, _iTransformedStart, BIAS::EightWaySymmetry< T >::DetermineLineType(), and BIAS::EightWaySymmetry< T >::Transform().
Referenced by BIAS::ImageDraw< StorageType >::Arrow(), Bresenham(), Init(), and BIAS::Scanline::Init().
|
inline |
Definition at line 56 of file Bresenham.hh.
References Init().
|
inline |
Definition at line 146 of file Bresenham.hh.
References _bInitialized, _dDx, _dDy, _eLineType, _iDx, _iDy, _iEnd, _iEps, _iStart, _iSym, _iTransformedCurrent, _iTransformedEnd, _iTransformedStart, BIAS::EightWaySymmetry< T >::DetermineLineType(), and BIAS::EightWaySymmetry< T >::Transform().
|
protected |
Definition at line 84 of file Bresenham.hh.
Referenced by Bresenham(), GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 80 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 81 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 71 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 78 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 79 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 74 of file Bresenham.hh.
Referenced by Init().
|
protected |
Definition at line 82 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 73 of file Bresenham.hh.
Referenced by Init().
|
protected |
Definition at line 69 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 75 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), Init(), and BIAS::Scanline::Init().
|
protected |
Definition at line 77 of file Bresenham.hh.
Referenced by GetNext(), BIAS::Scanline::GetNext(), and Init().
|
protected |
Definition at line 76 of file Bresenham.hh.
Referenced by Init(), and BIAS::Scanline::Init().