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

Public Member Functions | |
| GT2005BallSpecialist (const ColorCorrector &colorCorrector) | |
| void | searchBall (const Image &image, const ColorTable &colorTable, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, int x, int y, BallPercept &ballPercept) |
| Searches for the ball in the image, starting from the secified point. | |
| unsigned char | getSimilarityToOrange (unsigned char y, unsigned char u, unsigned char v) |
| Returns the Similarity of the given color to orange. | |
| void | resetMultiplePerceptsList (BallPercept &ballPercept) |
| void | forwardPercept (BallPercept &ballPercept) |
Public Attributes | |
| List< MultipleBallPerceptElement > | multiplePercepts |
Private Member Functions | |
| void | scanForBallPoints (const Image &image, const CameraInfo &bwCameraInfo, const ColorTable &colorTable, int x, int y, BallPointList &ballPoints, int &countAmbiguous, int &countOrange, int &maxOrangePerLine, int &countPixel) |
| Scan for the ball starting at a given trigger point. | |
| bool | findEndOfBall (const Image &image, const CameraInfo &bwCameraInfo, const ColorTable &colorTable, const BallPoint &start, const Vector2< int > &step, BallPoint &destination, int &countAmbiguous, int &countOrange, int &maxOrangePerLine, int &countPixel) |
| Finds the end of the ball. | |
| bool | createBallPerceptLevenbergMarquardt (const BallPointList &ballPoints, Vector2< int > ¢er, double &radius) |
| The function tries to calculate the ball percept by using the Levenberg-Marquardt algorithm. | |
| bool | checkIfPointsAreInsideBall (const BallPointList &ballPoints, Vector2< int > ¢er, double radius) |
| void | calculateDeviationOfBallPoints (const BallPointList &ballPoints, Vector2< int > ¢er, double radius) |
| void | addBallPercept (const Image &image, const CameraInfo &bwCameraInfo, const ColorTable &colorTable, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const Vector2< int > ¢er, double radius, BallPercept &ballPercept) |
| The function checks whether a ball percept is plausible and will add it if so. | |
| void | considerBallPoints (const BallPointList &ballPoints) |
| The function calculates the factor durabilityOfBallPoints that will be needed later to calculate a reliability for the percept. | |
| double | calculateReliability (double percentOfOrange, double radius, Vector2< double > anglesToCenter, const CameraInfo bwCameraInfo, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix) |
| The function calculates the reliability of the ball percept. | |
| void | addMultiplePercept (const MultipleBallPerceptElement &newPercept) |
Private Attributes | |
| const ColorCorrector & | colorCorrector |
| double | deviationOfBallPoints |
| double | durabilityOfBallPoints |
Definition at line 32 of file GT2005BallSpecialist.h.
|
|
Definition at line 25 of file GT2005BallSpecialist.cpp. |
|
||||||||||||||||||||||||||||||||
|
Searches for the ball in the image, starting from the secified point.
Definition at line 35 of file GT2005BallSpecialist.cpp. References GT2005BallSpecialist::BallPointList::add(), DEBUG_DRAWING_FINISHED, CameraInfo::focalLength, CameraInfo::focalLengthInv, GT2005BallSpecialist::BallPointList::number, CameraInfo::opticalCenter, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, Vector2< double >::x, and Vector2< double >::y. Referenced by SlamImageProcessor::execute(), and GT2005ImageProcessor::execute(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Returns the Similarity of the given color to orange.
Definition at line 53 of file GT2005BallSpecialist.h. References ColorModelConversions::fromYCbCrToRGB(), max, and min. Referenced by findEndOfBall(). |
Here is the call graph for this function:

|
|
Definition at line 907 of file GT2005BallSpecialist.cpp. References List< MultipleBallPerceptElement >::clear(), BallPercept::multiplePercepts, and MultipleBallPerceptList::numberOfElements. Referenced by SlamImageProcessor::execute(), and GT2005ImageProcessor::execute(). |
Here is the call graph for this function:

|
|
Definition at line 937 of file GT2005BallSpecialist.cpp. References MultipleBallPerceptList::add(), List< MultipleBallPerceptElement >::getFirst(), List< MultipleBallPerceptElement >::getSize(), and BallPercept::multiplePercepts. Referenced by SlamImageProcessor::execute(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||||||||||||||
|
Scan for the ball starting at a given trigger point.
Definition at line 166 of file GT2005BallSpecialist.cpp. References GT2005BallSpecialist::BallPoint::atBorder, DOT, findEndOfBall(), Vector2< V >::x, Vector2< int >::x, Vector2< V >::y, and Vector2< int >::y. |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||||||||||||||
|
Finds the end of the ball.
Definition at line 360 of file GT2005BallSpecialist.cpp. References colorCorrector, ColorCorrector::correct(), CORRECTED_COLOR_CLASS, getSimilarityToOrange(), LINE, and max. Referenced by scanForBallPoints(). |
Here is the call graph for this function:

|
||||||||||||||||
|
The function tries to calculate the ball percept by using the Levenberg-Marquardt algorithm. The function fails if less than 3 points are available.
Definition at line 554 of file GT2005BallSpecialist.cpp. References idText, OUTPUT, and Matrix_nxn< T, N >::solve(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 633 of file GT2005BallSpecialist.cpp. References deviationOfBallPoints, Geometry::distance(), and GT2005BallSpecialist::BallPointList::number. |
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 663 of file GT2005BallSpecialist.cpp. References deviationOfBallPoints, Geometry::distance(), and GT2005BallSpecialist::BallPointList::number. |
Here is the call graph for this function:

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

|
|
The function calculates the factor durabilityOfBallPoints that will be needed later to calculate a reliability for the percept.
Definition at line 687 of file GT2005BallSpecialist.cpp. References durabilityOfBallPoints, and GT2005BallSpecialist::BallPointList::number. |
|
||||||||||||||||||||||||||||
|
The function calculates the reliability of the ball percept.
Definition at line 739 of file GT2005BallSpecialist.cpp. References deviationOfBallPoints, durabilityOfBallPoints, Geometry::getBallDistanceByAngleSize(), max, Pose3D::translation, Vector2< V >::y, and Vector3< double >::z. |
Here is the call graph for this function:

|
|
Definition at line 914 of file GT2005BallSpecialist.cpp. References List< MultipleBallPerceptElement >::getFirst(), List< MultipleBallPerceptElement >::getSize(), List< MultipleBallPerceptElement >::insert(), and MultipleBallPerceptElement::reliability. |
Here is the call graph for this function:

|
|
Definition at line 70 of file GT2005BallSpecialist.h. |
|
|
Definition at line 195 of file GT2005BallSpecialist.h. Referenced by findEndOfBall(). |
|
|
Definition at line 198 of file GT2005BallSpecialist.h. Referenced by calculateDeviationOfBallPoints(), calculateReliability(), and checkIfPointsAreInsideBall(). |
|
|
Definition at line 199 of file GT2005BallSpecialist.h. Referenced by calculateReliability(), and considerBallPoints(). |
1.3.6