Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GT2005EdgeSpecialist Class Reference

The EdgeSpecialist finds a line- and border-edges in an image. More...

#include <GT2005EdgeSpecialist.h>

Collaboration diagram for GT2005EdgeSpecialist:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GT2005EdgeSpecialist ()
void reset ()
 reset all data before processing next frame.

void resetLine ()
 reset before next scanline.

void checkPoint (Vector2< int > point, colorClass color, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const Image &image)
 check point in camera-coordinates with given color on scanline if interesting changes.

void addCandidate (Vector2< int > point, const Image &image)
 add a point in camera-coordinates which is a candidate for an edge point.

void getEdgesPercept (EdgesPercept &percept, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const Image &image)
 Searches for the edges based on the points and return edge-percepts from those.


Private Types

enum  { maxNumberOfEdgePoints = 200 }

Private Attributes

bool greenBefore
bool whiteBefore
int numberOfContinuousNoColor
Vector2< int > lastGreen
Vector2< int > lastGreenField
Vector2< int > lastWhite
Vector2< int > lastWhiteField
EdgePoint edgePoints [maxNumberOfEdgePoints]
int numOfEdgePoints
double gradientThreshold
double normDistance
double normProjection
double multipleAverageDistance
Matrix2x2< double > referenceChange

Detailed Description

The EdgeSpecialist finds a line- and border-edges in an image.

Definition at line 20 of file GT2005EdgeSpecialist.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
maxNumberOfEdgePoints 

Definition at line 62 of file GT2005EdgeSpecialist.h.


Constructor & Destructor Documentation

GT2005EdgeSpecialist::GT2005EdgeSpecialist  ) 
 

Definition at line 15 of file GT2005EdgeSpecialist.cpp.

References pi.


Member Function Documentation

void GT2005EdgeSpecialist::reset  ) 
 

reset all data before processing next frame.

Definition at line 42 of file GT2005EdgeSpecialist.cpp.

References numOfEdgePoints.

Referenced by GT2005ImageProcessor::execute().

void GT2005EdgeSpecialist::resetLine  ) 
 

reset before next scanline.

Definition at line 47 of file GT2005EdgeSpecialist.cpp.

References greenBefore, numberOfContinuousNoColor, and whiteBefore.

Referenced by GT2005ImageProcessor::scan().

void GT2005EdgeSpecialist::checkPoint Vector2< int >  point,
colorClass  color,
const CameraMatrix cameraMatrix,
const CameraMatrix prevCameraMatrix,
const Image image
 

check point in camera-coordinates with given color on scanline if interesting changes.

Definition at line 54 of file GT2005EdgeSpecialist.cpp.

References addCandidate(), Geometry::calculatePointOnField(), Image::cameraInfo, greenBefore, lastGreen, lastGreenField, lastWhite, noColor, numberOfContinuousNoColor, point, whiteBefore, Vector2< int >::x, and Vector2< int >::y.

Referenced by GT2005ImageProcessor::scan().

Here is the call graph for this function:

void GT2005EdgeSpecialist::addCandidate Vector2< int >  point,
const Image image
 

add a point in camera-coordinates which is a candidate for an edge point.

Definition at line 97 of file GT2005EdgeSpecialist.cpp.

References Vector2< V >::abs(), GT2005EdgeSpecialist::EdgePoint::belongsToLineNo, DOT, edgePoints, gradientThreshold, idText, Image::image, GT2005EdgeSpecialist::EdgePoint::line, maxNumberOfEdgePoints, NDOT, Vector2< V >::normalize(), numOfEdgePoints, GT2005EdgeSpecialist::EdgePoint::offset, OUTPUT, point, referenceChange, GT2005EdgeSpecialist::EdgePoint::weight, Vector2< int >::x, and Vector2< int >::y.

Referenced by checkPoint().

Here is the call graph for this function:

void GT2005EdgeSpecialist::getEdgesPercept EdgesPercept percept,
const CameraMatrix cameraMatrix,
const CameraMatrix prevCameraMatrix,
const Image image
 

Searches for the edges based on the points and return edge-percepts from those.

Definition at line 143 of file GT2005EdgeSpecialist.cpp.

References EdgesPercept::add(), ARROW, Geometry::Line::base, GT2005EdgeSpecialist::EdgePoint::belongsToLineNo, Geometry::calculateLineSize(), Geometry::calculatePointOnField(), Image::cameraInfo, Geometry::Line::direction, Geometry::distance(), DOT, edgePoints, LINE, GT2005EdgeSpecialist::EdgePoint::line, maxNumberOfEdgePoints, multipleAverageDistance, NARROW, NDECLARE_DEBUGDRAWING, NDOT, NLINE, normDistance, normProjection, numOfEdgePoints, GT2005EdgeSpecialist::EdgePoint::offset, GT2005EdgeSpecialist::EdgePoint::weight, Vector2< V >::x, Vector2< int >::x, Vector2< double >::x, Vector2< V >::y, Vector2< double >::y, and Vector2< int >::y.

Referenced by GT2005ImageProcessor::execute().

Here is the call graph for this function:


Member Data Documentation

bool GT2005EdgeSpecialist::greenBefore [private]
 

Definition at line 56 of file GT2005EdgeSpecialist.h.

Referenced by checkPoint(), and resetLine().

bool GT2005EdgeSpecialist::whiteBefore [private]
 

Definition at line 57 of file GT2005EdgeSpecialist.h.

Referenced by checkPoint(), and resetLine().

int GT2005EdgeSpecialist::numberOfContinuousNoColor [private]
 

Definition at line 58 of file GT2005EdgeSpecialist.h.

Referenced by checkPoint(), and resetLine().

Vector2<int> GT2005EdgeSpecialist::lastGreen [private]
 

Definition at line 59 of file GT2005EdgeSpecialist.h.

Referenced by checkPoint().

Vector2<int> GT2005EdgeSpecialist::lastGreenField [private]
 

Definition at line 59 of file GT2005EdgeSpecialist.h.

Referenced by checkPoint().

Vector2<int> GT2005EdgeSpecialist::lastWhite [private]
 

Definition at line 60 of file GT2005EdgeSpecialist.h.

Referenced by checkPoint().

Vector2<int> GT2005EdgeSpecialist::lastWhiteField [private]
 

Definition at line 60 of file GT2005EdgeSpecialist.h.

EdgePoint GT2005EdgeSpecialist::edgePoints[maxNumberOfEdgePoints] [private]
 

Definition at line 70 of file GT2005EdgeSpecialist.h.

Referenced by addCandidate(), and getEdgesPercept().

int GT2005EdgeSpecialist::numOfEdgePoints [private]
 

Definition at line 71 of file GT2005EdgeSpecialist.h.

Referenced by addCandidate(), getEdgesPercept(), and reset().

double GT2005EdgeSpecialist::gradientThreshold [private]
 

Definition at line 72 of file GT2005EdgeSpecialist.h.

Referenced by addCandidate().

double GT2005EdgeSpecialist::normDistance [private]
 

Definition at line 73 of file GT2005EdgeSpecialist.h.

Referenced by getEdgesPercept().

double GT2005EdgeSpecialist::normProjection [private]
 

Definition at line 74 of file GT2005EdgeSpecialist.h.

Referenced by getEdgesPercept().

double GT2005EdgeSpecialist::multipleAverageDistance [private]
 

Definition at line 75 of file GT2005EdgeSpecialist.h.

Referenced by getEdgesPercept().

Matrix2x2<double> GT2005EdgeSpecialist::referenceChange [private]
 

Definition at line 76 of file GT2005EdgeSpecialist.h.

Referenced by addCandidate().


The documentation for this class was generated from the following files:
Generated on Mon Mar 20 22:13:49 2006 for GT2005 by doxygen 1.3.6