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

Public Member Functions | |
| GT2005PlayerSpecialist (const ColorCorrector &colorCorrector, const ColorTable &colorTable, const Image &image, const ImageInfo &imageInfo, const LinesPercept &linesPercept, const CameraMatrix &cameraMatrix, PlayersPercept &playersPercept) | |
| void | execute () |
| Execute the Specialist. | |
Private Member Functions | |
| void | detectRedRobots (Vector2< int > averageRobotSignatureStart, Vector2< int > averageRobotSignatureStop, Vector2< int > averageRobotSignature) |
| search for more robot properties | |
| void | detectBlueRobots (Vector2< int > averageRobotSignatureStart, Vector2< int > averageRobotSignatureStop, Vector2< int > averageRobotSignature) |
| Vector2< unsigned char > | findRedFootPointYAxis (Vector2< unsigned char > start, Vector2< char > direction, short depth, unsigned char recursionLevel=0) |
| Finds the foot point of a robots leg. | |
| Vector2< unsigned char > | findBlueFootPointYAxis (Vector2< unsigned char > start, Vector2< char > direction, short depth, unsigned char recursionLevel=0) |
| void | clusterRobotLinesPercepts () |
| Clusters the linespercepts in different robots Maximal 4 robots and 30 pixel space between them. | |
| bool | checkForWhiteLineBetweenRed (Vector2< int > start, Vector2< int > stop) |
| Checks if the line between 2 points is mostly white or accepted color. | |
| bool | checkForWhiteLineBetweenBlue (Vector2< int > start, Vector2< int > stop) |
| colorClass | inspectColorArea (const Vector2< unsigned char > &position, const Vector2< char > &direction) |
| Inspect a color quad of the color proportion. | |
Private Attributes | |
| Vector2< int > | averageRedRobotSignatureStart [4] |
| Vector2< int > | averageRedRobotSignatureStop [4] |
| Needed for debugging. | |
| Vector2< int > | averageRedRobotSignature [4] |
| Needed for debugging. | |
| Vector2< int > | averageBlueRobotSignatureStart [4] |
| Needed for debugging. | |
| Vector2< int > | averageBlueRobotSignatureStop [4] |
| Needed for debugging. | |
| Vector2< int > | averageBlueRobotSignature [4] |
| Needed for debugging. | |
| int | clusteredRedRobots |
| Needed for debugging. | |
| int | clusteredBlueRobots |
| Needed for debugging. | |
| int | averageRedRobotSignaturePoints [4] |
| the number of clustered robots | |
| int | averageBlueRobotSignaturePoints [4] |
| the number of clustered robots | |
| int | maxDepth |
| const ImageInfo & | imageInfo |
| const ColorTable & | colorTable |
| const ColorCorrector & | colorCorrector |
| const LinesPercept & | linesPercept |
| const Image & | image |
| const CameraMatrix & | cameraMatrix |
| PlayersPercept & | playersPercept |
Definition at line 26 of file GT2005PlayerSpecialist.h.
|
||||||||||||||||||||||||||||||||
|
Definition at line 16 of file GT2005PlayerSpecialist.cpp. |
|
|
Execute the Specialist.
Definition at line 36 of file GT2005PlayerSpecialist.cpp. References averageBlueRobotSignature, averageBlueRobotSignaturePoints, averageBlueRobotSignatureStart, averageBlueRobotSignatureStop, averageRedRobotSignature, averageRedRobotSignaturePoints, averageRedRobotSignatureStart, averageRedRobotSignatureStop, clusteredBlueRobots, clusteredRedRobots, clusterRobotLinesPercepts(), detectBlueRobots(), detectRedRobots(), LINE, and NLINE. |
Here is the call graph for this function:

|
||||||||||||||||
|
search for more robot properties
Definition at line 98 of file GT2005PlayerSpecialist.cpp. References PlayersPercept::addRedPlayer(), Geometry::calculatePointOnField(), Image::cameraInfo, CIRCLE, CORRECTED_COLOR_CLASS, SinglePlayerPercept::directionOnField, DOT, findRedFootPointYAxis(), BresenhamLineScan::getNext(), idText, Image::image, ImageInfo::maxImageCoordinates, NCIRCLE, NDOT, SinglePlayerPercept::offsetOnField, SinglePlayerPercept::orientation, OUTPUT, pi, point, SinglePlayerPercept::positionInImage, ImageInfo::previousCameraMatrix, SinglePlayerPercept::validity, Vector2< double >::x, Vector2< int >::x, Vector2< V >::x, Vector2< double >::y, Vector2< int >::y, and Vector2< V >::y. Referenced by execute(). |
Here is the call graph for this function:

|
||||||||||||||||
Here is the call graph for this function:

|
||||||||||||||||||||
|
Finds the foot point of a robots leg. To compare the results the Y-axis is used
Definition at line 698 of file GT2005PlayerSpecialist.cpp. References CORRECTED_COLOR_CLASS, DOT, idText, Image::image, LINE, max, ImageInfo::maxImageCoordinates, NDOT, NLINE, OUTPUT, Vector2< double >::x, Vector2< int >::x, Vector2< V >::x, Vector2< double >::y, Vector2< int >::y, and Vector2< V >::y. Referenced by detectRedRobots(). |
|
||||||||||||||||||||
|
Definition at line 778 of file GT2005PlayerSpecialist.cpp. References CORRECTED_COLOR_CLASS, DOT, idText, Image::image, LINE, max, ImageInfo::maxImageCoordinates, NDOT, NLINE, OUTPUT, Vector2< double >::x, Vector2< int >::x, Vector2< V >::x, Vector2< double >::y, Vector2< int >::y, and Vector2< V >::y. Referenced by detectBlueRobots(). |
|
|
Clusters the linespercepts in different robots Maximal 4 robots and 30 pixel space between them.
Definition at line 466 of file GT2005PlayerSpecialist.cpp. References averageBlueRobotSignature, averageBlueRobotSignaturePoints, averageBlueRobotSignatureStart, averageBlueRobotSignatureStop, averageRedRobotSignature, averageRedRobotSignaturePoints, averageRedRobotSignatureStart, averageRedRobotSignatureStop, checkForWhiteLineBetweenBlue(), checkForWhiteLineBetweenRed(), clusteredBlueRobots, clusteredRedRobots, linesPercept, and LinesPercept::points. Referenced by execute(). |
Here is the call graph for this function:

|
||||||||||||
|
Checks if the line between 2 points is mostly white or accepted color.
Definition at line 632 of file GT2005PlayerSpecialist.cpp. References CORRECTED_COLOR_CLASS, BresenhamLineScan::getNext(), idText, Image::image, ImageInfo::maxImageCoordinates, noColor, OUTPUT, Vector2< int >::x, Vector2< V >::x, Vector2< int >::y, and Vector2< V >::y. Referenced by clusterRobotLinesPercepts(). |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 564 of file GT2005PlayerSpecialist.cpp. References CORRECTED_COLOR_CLASS, BresenhamLineScan::getNext(), idText, Image::image, ImageInfo::maxImageCoordinates, noColor, OUTPUT, Vector2< int >::x, Vector2< V >::x, Vector2< int >::y, and Vector2< V >::y. Referenced by clusterRobotLinesPercepts(). |
Here is the call graph for this function:

|
||||||||||||
|
Inspect a color quad of the color proportion.
Definition at line 855 of file GT2005PlayerSpecialist.cpp. References CORRECTED_COLOR_CLASS, Image::image, ImageInfo::maxImageCoordinates, noColor, Vector2< int >::x, Vector2< V >::x, Vector2< int >::y, and Vector2< V >::y. |
|
|
Definition at line 81 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 81 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 81 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 81 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 81 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 81 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 89 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Needed for debugging.
Definition at line 89 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
the number of clustered robots
Definition at line 90 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
the number of clustered robots
Definition at line 90 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(), and execute(). |
|
|
Definition at line 93 of file GT2005PlayerSpecialist.h. |
|
|
Definition at line 95 of file GT2005PlayerSpecialist.h. |
|
|
Definition at line 96 of file GT2005PlayerSpecialist.h. |
|
|
Definition at line 97 of file GT2005PlayerSpecialist.h. |
|
|
Definition at line 98 of file GT2005PlayerSpecialist.h. Referenced by clusterRobotLinesPercepts(). |
|
|
Definition at line 99 of file GT2005PlayerSpecialist.h. |
|
|
Definition at line 100 of file GT2005PlayerSpecialist.h. |
|
|
Definition at line 102 of file GT2005PlayerSpecialist.h. |
1.3.6