#include <BresenhamLineScan.h>
Collaboration diagram for BresenhamLineScan:

Public Member Functions | |
| BresenhamLineScan (const Vector2< int > &start, const Vector2< int > &end) | |
| Constructs a scanline through the two points. | |
| BresenhamLineScan (const Vector2< double > &direction) | |
| Constructs a scanline with the given direction. | |
| BresenhamLineScan (const double &direction) | |
| Constructs a scanline with the given direction. | |
| BresenhamLineScan (const Vector2< int > &start, const double &direction, const CameraInfo &cameraInfo) | |
| Constructs a scanline with the given direction starting at start and ending at the image boundary. | |
| BresenhamLineScan (const Vector2< int > &start, const Vector2< double > &direction, const CameraInfo &cameraInfo) | |
| Constructs a scanline with the given direction starting at start and ending at the image boundary. | |
| void | init () |
| Resets the error counter. | |
| void | getNext (Vector2< int > &pos) |
| Increments the coordinates to the next point on the line. | |
Public Attributes | |
| int | numberOfPixels |
| In conjuction with certain constructors (see above), this value can be used as a termination criterion for the scan. | |
Private Member Functions | |
| void | setup (const Vector2< int > &diff) |
| Computes the Bresenham parameters. | |
Private Attributes | |
| bool | alongX |
| Increase x-values, if true. | |
| int | delta |
| The error per step. | |
| int | baseError |
| The initial error value. | |
| int | resetError |
| Resets the error to a value less than zero. | |
| Vector2< int > | standardOffset |
| The standard offset per step. | |
| Vector2< int > | correctionOffset |
| The additional offset, if the error is above zero. | |
| int | error |
| The current error counter. | |
|
||||||||||||
|
Constructs a scanline through the two points. numberOfPixels can be used.
Definition at line 46 of file BresenhamLineScan.cpp. References setup(). |
Here is the call graph for this function:

|
|
Constructs a scanline with the given direction.
Definition at line 51 of file BresenhamLineScan.cpp. References setup(), Vector2< double >::x, and Vector2< double >::y. |
Here is the call graph for this function:

|
|
Constructs a scanline with the given direction.
Definition at line 57 of file BresenhamLineScan.cpp. References setup(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Constructs a scanline with the given direction starting at start and ending at the image boundary. numberOfPixels can be used.
Definition at line 90 of file BresenhamLineScan.cpp. References delta, Geometry::getIntersectionPointsOfLineAndRectangle(), CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and setup(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Constructs a scanline with the given direction starting at start and ending at the image boundary. numberOfPixels can be used.
Definition at line 63 of file BresenhamLineScan.cpp. References delta, Geometry::getIntersectionPointsOfLineAndRectangle(), CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, setup(), Vector2< V >::x, and Vector2< V >::y. |
Here is the call graph for this function:

|
|
|
|
Computes the Bresenham parameters.
Definition at line 13 of file BresenhamLineScan.cpp. References alongX, baseError, correctionOffset, delta, error, resetError, standardOffset, Vector2< int >::x, Vector2< V >::x, Vector2< int >::y, and Vector2< V >::y. Referenced by BresenhamLineScan(). |
|
|
In conjuction with certain constructors (see above), this value can be used as a termination criterion for the scan. In those cases, getNext can be called numberOfPixels times without leaving the image boundaries. Definition at line 93 of file BresenhamLineScan.h. Referenced by VLCBallSpecialist::addBallPercept(), GT2005BallSpecialist::addBallPercept(), SlamFlagLocator::addFlagDirection(), VLCGoalRecognizer::detectFreePartOfGoal(), GT2005GoalRecognizer::detectFreePartOfGoal(), VLCLineFinder_DeterministicApproach::doVerificationScanForCircle(), GT2005LineFinder_DeterministicApproach::doVerificationScanForCircle(), VLCRobotSpecialist::generateColorspace(), GT2005RobotSpecialist::generateColorspace(), VLCRobotSpecialist::noColorPixelsBetween(), GT2005RobotSpecialist::noColorPixelsBetween(), VLCRobotSpecialist::scan(), GT2005RobotSpecialist::scan(), VLCBeaconDetector::scanForBeaconPart(), SlamBeaconDetector::scanForBeaconPart(), GT2005BeaconDetector::scanForBeaconPart(), VLCBeaconDetector::scanForPink(), SlamBeaconDetector::scanForPink(), and GT2005BeaconDetector::scanForPink(). |
|
|
Increase x-values, if true.
Definition at line 98 of file BresenhamLineScan.h. Referenced by setup(). |
|
|
The error per step.
Definition at line 100 of file BresenhamLineScan.h. Referenced by BresenhamLineScan(), getNext(), and setup(). |
|
|
The initial error value.
Definition at line 102 of file BresenhamLineScan.h. |
|
|
Resets the error to a value less than zero.
Definition at line 104 of file BresenhamLineScan.h. |
|
|
The standard offset per step.
Definition at line 106 of file BresenhamLineScan.h. |
|
|
The additional offset, if the error is above zero.
Definition at line 108 of file BresenhamLineScan.h. |
|
|
The current error counter.
Definition at line 110 of file BresenhamLineScan.h. |
1.3.6