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

Static Public Member Functions | |
| double | angleTo (const Pose2D &from, const Vector2< double > &to) |
| Calculates the angle between a pose and a position. | |
| double | distanceTo (const Pose2D &from, const Vector2< double > &to) |
| Calculates the distance from a pose to a position. | |
| Vector2< double > | vectorTo (const Pose2D &from, const Vector2< double > &to) |
| Calculates the relative vector from a pose to a position. | |
| Circle | getCircle (const Vector2< int > point1, const Vector2< int > point2, const Vector2< int > point3) |
| Returns the circle defined by the three points. | |
| bool | getIntersectionOfLines (const Line line1, const Line line2, Vector2< double > &intersection) |
| bool | getIntersectionOfLines (const Line line1, const Line line2, Vector2< int > &intersection) |
| bool | getIntersectionOfRaysFactor (const Line ray1, const Line ray2, double &intersection) |
| double | getDistanceToLine (const Line line, const Vector2< double > &point) |
| double | getDistanceToEdge (const Line line, const Vector2< double > &point) |
| double | distance (const Vector2< double > &point1, const Vector2< double > &point2) |
| double | distance (const Vector2< int > &point1, const Vector2< int > &point2) |
| Vector3< double > | rayFromCamera (int y, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const Vector3< double > vector, const CameraInfo &cameraInfo) |
| void | calculateAnglesForPoint (const Vector2< int > &point, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, Vector2< double > &angles) |
| void | calculateAnglesForPoint (const Vector2< int > &point, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const CameraInfo &cameraInfo, Vector2< double > &angles) |
| void | calculatePointByAngles (const Vector2< double > &angles, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, Vector2< int > &point) |
| bool | clipLineWithQuadrangle (const Line lineToClip, const Vector2< double > &corner0, const Vector2< double > &corner1, const Vector2< double > &corner2, const Vector2< double > &corner3, Vector2< double > &clipPoint1, Vector2< double > &clipPoint2) |
| bool | clipLineWithQuadrangle (const Line lineToClip, const Vector2< double > &corner0, const Vector2< double > &corner1, const Vector2< double > &corner2, const Vector2< double > &corner3, Vector2< int > &clipPoint1, Vector2< int > &clipPoint2) |
| bool | isPointInsideRectangle (const Vector2< double > &bottomLeftCorner, const Vector2< double > &topRightCorner, const Vector2< double > &point) |
| bool | isPointInsideRectangle (const Vector2< int > &bottomLeftCorner, const Vector2< int > &topRightCorner, const Vector2< int > &point) |
| bool | clipPointInsideRectange (const Vector2< int > &bottomLeftCorner, const Vector2< int > &topRightCorner, Vector2< int > &point) |
| bool | clipPointInsideRectange (const Vector2< int > &bottomLeftCorner, const Vector2< int > &topRightCorner, Vector2< double > &point) |
| bool | calculatePointOnField (const int x, const int y, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, Vector2< double > &pointOnField) |
| Calculates where a pixel in the image lies on the ground (relative to the robot). | |
| bool | calculatePointOnField (const int x, const int y, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const CameraInfo &cameraInfo, Vector2< double > &pointOnField) |
| Calculates where a pixel in the image lies on the ground (relative to the robot). | |
| bool | calculatePointOnField (const int x, const int y, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, Vector2< int > &pointOnField) |
| Calculates where a pixel in the image lies on the ground (relative to the robot). | |
| bool | calculatePointOnField (const int x, const int y, const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const CameraInfo &cameraInfo, Vector2< int > &pointOnField) |
| Calculates where a pixel in the image lies on the ground (relative to the robot). | |
| void | calculatePointInImage (const Vector2< int > &point, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, Vector2< int > &pointInImage) |
| Calculates where a relative point on the ground appears in an image. | |
| bool | getIntersectionPointsOfLineAndRectangle (const Vector2< int > &bottomLeft, const Vector2< int > &topRight, const Geometry::Line line, Vector2< int > &point1, Vector2< int > &point2) |
| Clips a line with a rectangle. | |
| bool | clipLineWithRectangleCohenSutherland (const Vector2< int > &bottomLeft, const Vector2< int > &topRight, Vector2< int > &point1, Vector2< int > &point2) |
| Clips a line with the Cohen-Sutherland-Algorithm. | |
| int | cohenSutherlandOutCode (const Vector2< int > &bottomLeft, const Vector2< int > &topRight, Vector2< int > &point) |
| Calculates the Cohen Sutherland Code for a given point and a given rectangle. | |
| int | intersection (int a1, int b1, int a2, int b2, int value) |
| Calculates the intersection of an arbitrary line and a horizontal or vertical line. | |
| Vector2< double > | relative2FieldCoord (RobotPose rp, double x, double y) |
| Function does the transformation from 2d relative robot coordinates to absolute field coordinates. | |
| Vector2< double > | fieldCoord2Relative (RobotPose robotPose, Vector2< double > fieldCoord) |
| Function does the transformation from 2d field coordinates to coordinates relative to the robot. | |
| bool | calculateBallInImage (const Vector2< double > &ballOffset, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo, Circle &circle) |
| The function approximates the shape of a ball in the camera image. | |
| double | getDistanceBySize (const CameraInfo &cameraInfo, double sizeInReality, double sizeInPixels) |
| The function determines how far an object is away depending on its real size and the size in the image. | |
| double | getDistanceBySize (const CameraInfo &cameraInfo, double sizeInReality, double sizeInPixels, double centerX, double centerY) |
| The function determines how far an object is away depending on its real size and the size in the image along with its center position, using camera intrinsic parameters. | |
| double | getDistanceByAngleSize (double sizeInReality, double sizeInPixels) |
| The function determines how far an object is away depending on its real size and the size in the image. | |
| double | getBallDistanceByAngleSize (double sizeInReality, double sizeInPixels) |
| The function determines how far the ball is away depending on its real size and the size in the image. | |
| double | getSizeByDistance (double sizeInReality, double distance, double imageWidthPixels, double imageWidthAngle) |
| The function determines how big an object appears in the image depending on its distance and size. | |
| double | getSizeByDistance (const CameraInfo &cameraInfo, double sizeInReality, double distance) |
| The function determines how big an object appears in the image depending on its distance and size. | |
| Geometry::Line | calculateHorizon (const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
| The function calculates the horizon. | |
| int | calculateLineSize (const Vector2< int > &pointInImage, const CameraMatrix &cameraMatrix, const CameraInfo &cameraInfo) |
| The function calculates the expected size (pixel) of a field line in an image. | |
| double | pixelSizeToAngleSize (double pixelSize, const CameraInfo &cameraInfo) |
| Calculates the angle size for a given pixel size. | |
| double | angleSizeToPixelSize (double angleSize, const CameraInfo &cameraInfo) |
| Calculates the pixel size for a given angle size. | |
| void | radialDistortionCorrection (const CameraInfo &cameraInfo, const int srcX, const int srcY, double &correctedX, double &correctedY) |
| Corrects the radial distortion introduced by the camera lens (using a 4th order model) of a given pixel. | |
| void | setupRadialCorrection (const CameraInfo &cameraInfo) |
| This function builds a radial distortion correction look-up table based on the parameters contained in cameraInfo. | |
| void | setupRadialCorrectionERS7 () |
| void | setupRadialCorrectionERS210 () |
| bool | insideCircle (Geometry::Circle &circle, double radius2, double x, double y) |
| void | radialDistortionCorrectionFast (const int srcX, const int srcY, int &correctedX, int &correctedY) |
| Corrects the radial distortion introduced by the camera lens (using a 4th order model) of a given pixel, using a pre-computed look-up table. | |
Static Private Member Functions | |
| double | calculateScaleFactor (int y, unsigned long frameNumber, unsigned long prevFrameNumber, const CameraInfo &cameraInfo) |
Static Private Attributes | |
| CorrectedCoords | radialCorrectionLUT [cameraResolutionHeight_ERS7][cameraResolutionWidth_ERS7] |
Definition at line 26 of file Geometry.h.
|
||||||||||||
|
||||||||||||
|
Calculates the distance from a pose to a position.
Definition at line 25 of file Geometry.cpp. Referenced by MathFunctions::distanceTo(), KickLogger::execute(), GT2005BasicBehaviorGoToInterceptionPoint::execute(), GT2005BasicBehaviorGoToPointFast::execute(), GT2005BasicBehaviorGoToRelativePoint::execute(), GT2005BasicBehaviorGoToPoint::execute(), GT2005BasicBehaviorGoToPointAndAvoidObstacles::execute(), GT2005BasicBehaviorTurnAroundPointWithRadius::execute(), GT2005BasicBehaviorTurnAroundPointFast::execute(), GT2005BasicBehaviorTurnAroundPoint::execute(), GT2005BasicBehaviorGoaliePositionReturn::execute(), GT2005BasicBehaviorGoToBallWithoutTurning::execute(), GT2005BasicBehaviorGoToBallPropagated::execute(), GT2005BasicBehaviorGoToBall::execute(), GT2005BasicBehaviorNewGoToBall::execute(), fieldCoord2Relative(), KickLogger::getBallX(), KickLogger::getBallY(), RobotPoseSymbols::getDistanceToOpponentGoal(), RobotPoseSymbols::getDistanceToOwnGoal(), GT2005StrategySymbols::getGoalieMaxPositionSpeed(), KickSelectionSymbols::intentionalKickPossible(), GT2005BallLocator::measurementUpdate(), KickSelectionSymbols::retrieveKick(), and ObstaclesSymbols::update(). |
|
||||||||||||
|
Calculates the relative vector from a pose to a position.
Definition at line 31 of file Geometry.cpp. |
|
||||||||||||||||
|
Returns the circle defined by the three points.
Definition at line 45 of file Geometry.cpp. References Geometry::Circle::center, Geometry::Circle::radius, sqr, Vector2< double >::x, and Vector2< double >::y. |
|
||||||||||||||||
|
Definition at line 129 of file Geometry.cpp. References intersection(). Referenced by FieldDimensions::clipLineWithField(), clipLineWithQuadrangle(), VLCLineFinder_DeterministicApproach::findIntersections(), SlamBorderFinder::findIntersections(), GT2005LineFinder_DeterministicApproach::findIntersections(), getIntersectionOfLines(), VLCLineFinder_DeterministicApproach::handleCenterCircle(), GT2005LineFinder_DeterministicApproach::handleCenterCircle(), VLCRobotSpecialist::scan(), GT2005RobotSpecialist::scan(), and SlamImageProcessor::scanColumns(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 115 of file Geometry.cpp. References getIntersectionOfLines(), intersection(), Vector2< V >::x, and Vector2< V >::y. |
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 166 of file Geometry.cpp. |
|
||||||||||||
|
Definition at line 189 of file Geometry.cpp. References distance(), and point. Referenced by FieldDimensions::clipLineWithField(), getDistanceToEdge(), FieldDimensions::isInsideField(), VLCFlagSpecialist::searchFlags(), SlamFlagSpecialist::searchFlags(), GT2005FlagSpecialist::searchFlags(), FieldDimensions::vectorToBorder(), and FieldDimensions::vectorToBorderIncludingGoals(). |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 208 of file Geometry.cpp. References distance(), getDistanceToLine(), and point. |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 230 of file Geometry.cpp. Referenced by VLCBallSpecialist::calculateDeviationOfBallPoints(), GT2005BallSpecialist::calculateDeviationOfBallPoints(), GT2005ParticleContainer::calculateEstimatedBall(), VLCBallSpecialist::checkIfPointsAreInsideBall(), GT2005BallSpecialist::checkIfPointsAreInsideBall(), getDistanceToEdge(), getDistanceToLine(), SlamEdgeSpecialist::getEdgesPercept(), GT2005EdgeSpecialist::getEdgesPercept(), and getMin(). |
|
||||||||||||
|
Definition at line 239 of file Geometry.cpp. |
|
||||||||||||||||||||
|
Definition at line 247 of file Geometry.cpp. References getRobotConfiguration(), RobotConfiguration::getRobotDimensions(), RobotDimensions::imagesPerSecond, RobotDimensions::motionCycleTime, and CameraInfo::resolutionHeight. Referenced by rayFromCamera(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Definition at line 265 of file Geometry.cpp. References calculateScaleFactor(), CameraMatrix::frameNumber, Pose3D::rotation, and CameraInfo::simulated. Referenced by VLCFlagSpecialist::getFlagPercept(), SlamFlagSpecialist::getFlagPercept(), and GT2005FlagSpecialist::getFlagPercept(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 284 of file Geometry.cpp. References point, sqr, Vector3< V >::x, Vector2< int >::x, Vector3< V >::y, Vector2< int >::y, and Vector3< V >::z. Referenced by VLCBallSpecialist::addBallPercept(), GT2005BallSpecialist::addBallPercept(), SlamGoalRecognizer::calculateVerticalGoalScanLines(), GoalRecognizer::calculateVerticalGoalScanLines(), SlamBeaconDetector::characterizeNewFlag(), SlamGoalRecognizer::ColoredPartsCheck::determineLargePart(), GoalRecognizer::ColoredPartsCheck::determineLargePart(), SlamBeaconDetector::findSpecial(), VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::publishResults(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals(). |
|
||||||||||||||||||||||||
|
Definition at line 312 of file Geometry.cpp. References point, and Vector2< int >::y. |
|
||||||||||||||||||||
|
Definition at line 331 of file Geometry.cpp. References RotationMatrix::invert(), point, Vector2< int >::x, Vector3< V >::x, Vector2< int >::y, Vector3< V >::y, and Vector3< V >::z. Referenced by calculateBallInImage(), SlamGoalRecognizer::calculateVerticalGoalScanLines(), GoalRecognizer::calculateVerticalGoalScanLines(), SlamGoalRecognizer::scanHorizontalForGoals(), GoalRecognizer::scanHorizontalForGoals(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Definition at line 379 of file Geometry.cpp. References Geometry::Line::base, Geometry::Line::direction, getIntersectionOfLines(), point, Vector2< int >::x, Vector2< V >::x, Vector2< double >::x, Vector2< int >::y, Vector2< V >::y, and Vector2< double >::y. |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Definition at line 356 of file Geometry.cpp. References Vector2< V >::x, and Vector2< V >::y. |
|
||||||||||||||||
|
Definition at line 503 of file Geometry.cpp. References point, Vector2< int >::x, and Vector2< int >::y. |
|
||||||||||||||||
|
Definition at line 516 of file Geometry.cpp. References point, Vector2< int >::x, and Vector2< int >::y. |
|
||||||||||||||||
|
Definition at line 528 of file Geometry.cpp. References point, Vector2< V >::x, Vector2< int >::x, Vector2< V >::y, and Vector2< int >::y. Referenced by VLCBallSpecialist::addBallPercept(), GT2005BallSpecialist::addBallPercept(), VLCBeaconDetector::clusterPinkBeaconParts(), GT2005BeaconDetector::clusterPinkBeaconParts(), VLCBeaconDetector::scanForBeaconEdges(), SlamBeaconDetector::scanForBeaconEdges(), and GT2005BeaconDetector::scanForBeaconEdges(). |
|
||||||||||||||||
|
Definition at line 558 of file Geometry.cpp. References point, Vector2< V >::x, Vector2< int >::x, Vector2< V >::y, and Vector2< int >::y. |
|
||||||||||||||||||||||||
|
Calculates where a pixel in the image lies on the ground (relative to the robot).
Definition at line 589 of file Geometry.cpp. References Vector3< V >::x, Vector3< V >::y, and Vector3< V >::z. Referenced by VLCRobotSpecialist::addPercept(), GT2005RobotSpecialist::addPercept(), VLCImageProcessor::calcEdgeAngle(), SlamImageProcessor::calcEdgeAngle(), GT2005ImageProcessor::calcEdgeAngle(), VLCLineFinder_DeterministicApproach::calculateLineOnField(), SlamBorderFinder::calculateLineOnField(), GT2005LineFinder_DeterministicApproach::calculateLineOnField(), calculateLineSize(), calculatePointOnField(), SlamEdgeSpecialist::checkPoint(), GT2005EdgeSpecialist::checkPoint(), VLCImageProcessor::clusterRobots(), SlamImageProcessor::clusterRobots(), GT2005PlayerSpecialist::detectBlueRobots(), GT2005PlayerSpecialist::detectRedRobots(), VLCRobotSpecialist::distanceOnField(), GT2005RobotSpecialist::distanceOnField(), VLCLineFinder_DeterministicApproach::findIntersections(), SlamBorderFinder::findIntersections(), GT2005LineFinder_DeterministicApproach::findIntersections(), VLCRobotSpecialist::generatePercept(), GT2005RobotSpecialist::generatePercept(), SlamEdgeSpecialist::getEdgesPercept(), GT2005EdgeSpecialist::getEdgesPercept(), VLCLineFinder_DeterministicApproach::handleCenterCircle(), GT2005LineFinder_DeterministicApproach::handleCenterCircle(), VLCImageProcessor::scan(), SlamImageProcessor::scan(), GT2005ImageProcessor::scan(), GT2005CenterCircleFinder::scan(), and GuideDogRobotSpecialist::scanParallelToHorizon(). |
|
||||||||||||||||||||||||||||
|
Calculates where a pixel in the image lies on the ground (relative to the robot).
Definition at line 626 of file Geometry.cpp. References Vector2< V >::x, and Vector2< V >::y. |
|
||||||||||||||||||||||||
|
Calculates where a pixel in the image lies on the ground (relative to the robot).
Definition at line 421 of file Geometry.h. References calculatePointOnField(), Vector2< V >::x, and Vector2< V >::y. |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
Calculates where a pixel in the image lies on the ground (relative to the robot).
Definition at line 444 of file Geometry.h. References calculatePointOnField(), Vector2< V >::x, and Vector2< V >::y. |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Calculates where a relative point on the ground appears in an image.
Definition at line 655 of file Geometry.cpp. References Vector2< V >::abs(), point, Vector2< V >::x, Vector2< int >::x, Vector2< V >::y, and Vector2< int >::y. Referenced by GT2005CenterCircleFinder::checkCircleMidpoint(), GT2005CenterCircleFinder::checkCircleMidpoint2(), VLCCenterCircleFinder::determineCirclePoint(), VLCLineFinder_DeterministicApproach::doVerificationScanForCircle(), GT2005LineFinder_DeterministicApproach::doVerificationScanForCircle(), SlamSelfLocator::draw(), GT2005StableSelfLocator::draw(), GT2004SelfLocator::draw(), VLCLineFinder_DeterministicApproach::handleCenterCircle(), GT2005LineFinder_DeterministicApproach::handleCenterCircle(), VLCRobotSpecialist::scan(), GT2005RobotSpecialist::scan(), and SlamGoalRecognizer::scanLinesForGoals(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Clips a line with a rectangle.
Definition at line 694 of file Geometry.cpp. References Geometry::Line::base, Geometry::Line::direction, point, Vector2< int >::x, Vector2< V >::x, Vector2< double >::x, Vector2< int >::y, Vector2< V >::y, and Vector2< double >::y. Referenced by BresenhamLineScan::BresenhamLineScan(), SlamGoalRecognizer::calculateScanLinesParallelToHorizon(), GoalRecognizer::calculateScanLinesParallelToHorizon(), GuideDogRobotSpecialist::calculateScanLinesParallelToHorizon(), VLCImageProcessor::execute(), VLCBeaconDetector::execute(), SlamImageProcessor::execute(), SlamBeaconDetector::execute(), GT2005ImageProcessor::execute(), GT2005BeaconDetector::execute(), VLCLineFinder_DeterministicApproach::findLines(), SlamBorderFinder::findLines(), GT2005LineFinder_DeterministicApproach::findLines(), VLCImageProcessor::scanColumns(), SlamImageProcessor::scanColumns(), GT2005ImageProcessor::scanColumns(), VLCBeaconDetector::scanForBeaconEdges(), SlamBeaconDetector::scanForBeaconEdges(), GT2005BeaconDetector::scanForBeaconEdges(), VLCImageProcessor::scanRows(), SlamImageProcessor::scanRows(), and GT2005ImageProcessor::scanRows(). |
|
||||||||||||||||||||
|
Clips a line with the Cohen-Sutherland-Algorithm.
Definition at line 773 of file Geometry.cpp. References Vector2< V >::y. Referenced by SlamGoalRecognizer::calculateVerticalGoalScanLines(), GoalRecognizer::calculateVerticalGoalScanLines(), FieldDimensions::clipLineWithField(), FieldDimensions::clipLineWithFieldAndGoalAreas(), MSH2004EdgeDetection::findStart(), and GT2004EdgeDetection::findStart(). |
|
||||||||||||||||
|
Calculates the Cohen Sutherland Code for a given point and a given rectangle.
Definition at line 528 of file Geometry.h. References point, Vector2< V >::x, Vector2< int >::x, Vector2< V >::y, and Vector2< int >::y. |
|
||||||||||||||||||||||||
|
Calculates the intersection of an arbitrary line and a horizontal or vertical line.
Definition at line 845 of file Geometry.cpp. Referenced by getIntersectionOfLines(). |
|
||||||||||||||||
|
Function does the transformation from 2d relative robot coordinates to absolute field coordinates.
Definition at line 855 of file Geometry.cpp. References RotationMatrix::fromKardanRPY(), Pose2D::rotation, Pose2D::translation, Vector2< double >::x, Vector2< V >::x, Vector2< double >::y, and Vector2< V >::y. Referenced by VLCLineFinder_DeterministicApproach::addCrossingsPercept(), SlamBorderFinder::addCrossingsPercept(), GT2005TeamBallLocator::calcRepresentativeParticleContainer(), SlamBorderFinder::calculateDirectionAwayFromBorder(), GT2005CenterCircleFinder::checkCircleMidpoint(), GT2005CenterCircleFinder::checkCircleMidpoint2(), GT2005BallLocator::draw(), GT2005BallLocator::drawParticle(), VLCLineFinder_DeterministicApproach::findIntersections(), SlamBorderFinder::findIntersections(), GT2005LineFinder_DeterministicApproach::findIntersections(), KickLoggerSymbols::generateWalktoTarget(), VLCLineFinder_DeterministicApproach::handleCenterCircle(), GT2005LineFinder_DeterministicApproach::handleCenterCircle(), KickSelectionSymbols::intentionalKickTargetX(), KickSelectionSymbols::intentionalKickTargetY(), GT2005BallLocator::noNonsenseParticles(), and KickSelectionTable::searchKickInNeighbourhood(). |
Here is the call graph for this function:

|
||||||||||||
|
Function does the transformation from 2d field coordinates to coordinates relative to the robot.
Definition at line 870 of file Geometry.cpp. References angleTo(), distanceTo(), RobotPose::getPose(), Vector2< V >::x, and Vector2< V >::y. Referenced by KickLoggerSymbols::doExecute(), GT2005HeadControl::getLookAtBallAngles(), KickLoggerSymbols::getPropagatedRelativeX(), KickLoggerSymbols::isNear(), KickLoggerSymbols::kickLoggerSetExecuteState(), and GT2005BallLocator::noNonsenseParticles(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
The function approximates the shape of a ball in the camera image. Note: currently, the approximation is not exact.
Definition at line 881 of file Geometry.cpp. References Vector2< V >::abs(), alpha, calculatePointByAngles(), Geometry::Circle::center, pi_2, Geometry::Circle::radius, sqr, Pose3D::translation, Vector2< double >::x, Vector3< double >::x, Vector2< V >::x, Vector2< double >::y, Vector3< double >::y, Vector2< V >::y, and Vector3< double >::z. |
Here is the call graph for this function:

|
||||||||||||||||
|
The function determines how far an object is away depending on its real size and the size in the image.
Definition at line 922 of file Geometry.cpp. Referenced by SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals(). |
|
||||||||||||||||||||||||
|
The function determines how far an object is away depending on its real size and the size in the image along with its center position, using camera intrinsic parameters.
Definition at line 933 of file Geometry.cpp. |
|
||||||||||||
|
The function determines how far an object is away depending on its real size and the size in the image.
Definition at line 952 of file Geometry.cpp. |
|
||||||||||||
|
The function determines how far the ball is away depending on its real size and the size in the image.
Definition at line 961 of file Geometry.cpp. Referenced by BallPercept::addHighRes(), VLCBallSpecialist::calculateReliability(), and GT2005BallSpecialist::calculateReliability(). |
|
||||||||||||||||||||
|
The function determines how big an object appears in the image depending on its distance and size.
Definition at line 982 of file Geometry.cpp. Referenced by calculateLineSize(), VLCImageProcessor::scan(), SlamImageProcessor::scan(), and GT2005ImageProcessor::scan(). |
|
||||||||||||||||
|
The function determines how big an object appears in the image depending on its distance and size.
Definition at line 970 of file Geometry.cpp. |
|
||||||||||||
|
The function calculates the horizon.
Definition at line 995 of file Geometry.cpp. References Geometry::Line::base, Geometry::Line::direction, Geometry::Line::normalizeDirection(), Vector2< double >::x, and Vector2< double >::y. Referenced by VLCImageProcessor::execute(), SlamImageProcessor::execute(), SlamGoalRecognizer::execute(), GuideDogRobotSpecialist::execute(), GT2005ImageProcessor::execute(), and GoalRecognizer::getGoalPercept(). |
Here is the call graph for this function:

|
||||||||||||||||
|
The function calculates the expected size (pixel) of a field line in an image.
Definition at line 1037 of file Geometry.cpp. References Vector2< V >::abs(), calculatePointOnField(), getSizeByDistance(), and sqr. Referenced by VLCLineFinder_DeterministicApproach::addCrossingsPercept(), SlamBorderFinder::addCrossingsPercept(), GT2005LineFinder_DeterministicApproach::addCrossingsPercept(), SlamEdgeSpecialist::getEdgesPercept(), GT2005EdgeSpecialist::getEdgesPercept(), VLCImageProcessor::scan(), SlamImageProcessor::scan(), and GT2005ImageProcessor::scan(). |
Here is the call graph for this function:

|
||||||||||||
|
Calculates the angle size for a given pixel size.
Definition at line 916 of file Geometry.cpp. References CameraInfo::focalLengthInv. Referenced by VLCBallSpecialist::addBallPercept(), and GT2005BallSpecialist::addBallPercept(). |
|
||||||||||||
|
Calculates the pixel size for a given angle size.
Definition at line 911 of file Geometry.cpp. References CameraInfo::focalLength. |
|
||||||||||||||||||||||||
|
Corrects the radial distortion introduced by the camera lens (using a 4th order model) of a given pixel.
Definition at line 727 of file Geometry.h. References CameraInfo::focalLenPow2, CameraInfo::focalLenPow4, CameraInfo::fourthOrderRadialDistortion, CameraInfo::opticalCenter, CameraInfo::secondOrderRadialDistortion, Vector2< double >::x, and Vector2< double >::y. Referenced by setupRadialCorrection(). |
|
|
This function builds a radial distortion correction look-up table based on the parameters contained in cameraInfo.
Definition at line 1057 of file Geometry.cpp. References radialCorrectionLUT, radialDistortionCorrection(), CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, Geometry::CorrectedCoords::x, and Geometry::CorrectedCoords::y. Referenced by setupRadialCorrectionERS210(), and setupRadialCorrectionERS7(). |
Here is the call graph for this function:

|
|
Definition at line 745 of file Geometry.h. References setupRadialCorrection(). |
Here is the call graph for this function:

|
|
Definition at line 751 of file Geometry.h. References setupRadialCorrection(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 757 of file Geometry.h. References Geometry::Circle::center, Vector2< double >::x, and Vector2< double >::y. |
|
||||||||||||||||||||
|
Corrects the radial distortion introduced by the camera lens (using a 4th order model) of a given pixel, using a pre-computed look-up table.
Definition at line 770 of file Geometry.h. References radialCorrectionLUT, Geometry::CorrectedCoords::x, and Geometry::CorrectedCoords::y. |
|
|
Definition at line 1055 of file Geometry.cpp. Referenced by radialDistortionCorrectionFast(), and setupRadialCorrection(). |
1.3.6