#include <ImageProcessorUtilityClasses.h>
Collaboration diagram for ImageInfo:

Public Member Functions | |
| Vector2< double > | toHorizonAligned (const Vector2< int > &imageCoord) const |
| Converts image coordintates into coordinates in the horizon-aligned coordinate system. | |
| double | horizonAlignedXOf (const Vector2< int > &imageCoord) const |
| Calculates the x-coordinate in the horizon-aligned coordinate system of a point in image coordinates. | |
| double | horizonAlignedYOf (const Vector2< int > &imageCoord) const |
| Calculates the y-coordinate in the horizon-aligned coordinate system of a point in image coordinates. | |
| Vector2< int > | toImageCoordinates (const Vector2< double > &horizonAlignedCoord) const |
| Converts coordintates in the horizon-aligned coordinate system into image coordinates. | |
| Vector2< int > | toImageCoordinates (double x, double y) const |
| Converts coordintates in the horizon-aligned coordinate system into image coordinates. | |
| void | clipToImageBoundary (Vector2< int > &point) const |
| Clip the point to the image boundary. | |
Public Attributes | |
| Geometry::Line | horizon |
| The horizon (normalized). | |
| Geometry::Line | vertLine |
| A line perpendicular to the horizon (normalized). | |
| bool | horizonInImage |
| Flag, indicates whether the horizon is in the image or not. | |
| Vector2< int > | horizonStart |
| The starting point of the horizon. | |
| Vector2< int > | horizonEnd |
| The end point of the horizon. | |
| Vector2< int > | maxImageCoordinates |
| The bottom right corner of the image. | |
| CameraMatrix | previousCameraMatrix |
| The cameraMatrix of the previous image (more precisely, the last image processed by the ImageProcessor. | |
| Matrix2x2< double > | rotation |
| The rotation from a horizon-aligned coordinate system to the image coordinate system. | |
| Matrix2x2< double > | invRotation |
| The rotation from the image coordinates to the horizon-aligned coordinates. | |
| double | distanceTopLeftCorner |
| The distance of the top left corner to the horizon. | |
The Specialists may use this information without the need to recompute it.
Definition at line 15 of file ImageProcessorUtilityClasses.h.
|
|
Converts image coordintates into coordinates in the horizon-aligned coordinate system.
Definition at line 64 of file ImageProcessorUtilityClasses.h. References invRotation, Vector2< V >::x, and Vector2< V >::y. Referenced by VLCGoalRecognizer::analyzeGoalpost(), GT2005GoalRecognizer::analyzeGoalpost(), VLCGoalRecognizer::calculateLockedPixels(), GT2005GoalRecognizer::calculateLockedPixels(), VLCGoalRecognizer::scanCrossBar(), and GT2005GoalRecognizer::scanCrossBar(). |
|
|
Calculates the x-coordinate in the horizon-aligned coordinate system of a point in image coordinates.
Definition at line 75 of file ImageProcessorUtilityClasses.h. References Matrix2x2< double >::c, invRotation, Vector2< V >::x, Vector2< double >::x, and Vector2< V >::y. Referenced by VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::notifyAboutFlags(), and GT2005GoalRecognizer::publishResults(). |
|
|
Calculates the y-coordinate in the horizon-aligned coordinate system of a point in image coordinates.
Definition at line 87 of file ImageProcessorUtilityClasses.h. References Matrix2x2< double >::c, invRotation, Vector2< V >::x, Vector2< V >::y, and Vector2< double >::y. Referenced by VLCGoalRecognizer::recalculateLockedPixels(), and GT2005GoalRecognizer::recalculateLockedPixels(). |
|
|
Converts coordintates in the horizon-aligned coordinate system into image coordinates. No clipping is done.
Definition at line 99 of file ImageProcessorUtilityClasses.h. References Vector2< V >::x, and Vector2< V >::y. Referenced by VLCGoalRecognizer::calculateLockedPixels(), GT2005GoalRecognizer::calculateLockedPixels(), VLCGoalRecognizer::detectFreePartOfGoal(), GT2005GoalRecognizer::detectFreePartOfGoal(), VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::publishResults(), VLCGoalRecognizer::recalculateLockedPixels(), and GT2005GoalRecognizer::recalculateLockedPixels(). |
|
||||||||||||
|
Converts coordintates in the horizon-aligned coordinate system into image coordinates. No clipping is done.
Definition at line 112 of file ImageProcessorUtilityClasses.h. References Matrix2x2< double >::c, Vector2< double >::x, and Vector2< double >::y. |
|
|
Clip the point to the image boundary.
Definition at line 122 of file ImageProcessorUtilityClasses.h. References maxImageCoordinates, point, Vector2< int >::x, and Vector2< int >::y. Referenced by VLCGoalRecognizer::analyzeGoalpost(), GT2005GoalRecognizer::analyzeGoalpost(), VLCGoalRecognizer::detectFreePartOfGoal(), and GT2005GoalRecognizer::detectFreePartOfGoal(). |
|
|
|
|
Flag, indicates whether the horizon is in the image or not.
Definition at line 24 of file ImageProcessorUtilityClasses.h. Referenced by VLCImageProcessor::execute(), SlamImageProcessor::execute(), GT2005ImageProcessor::execute(), and GT2005ImageProcessor::pixelBelowHorizon(). |
|
|
The starting point of the horizon.
Definition at line 26 of file ImageProcessorUtilityClasses.h. Referenced by VLCImageProcessor::execute(), SlamImageProcessor::execute(), and GT2005ImageProcessor::execute(). |
|
|
The end point of the horizon.
Definition at line 28 of file ImageProcessorUtilityClasses.h. Referenced by VLCImageProcessor::execute(), SlamImageProcessor::execute(), and GT2005ImageProcessor::execute(). |
|
|
|
The cameraMatrix of the previous image (more precisely, the last image processed by the ImageProcessor.
Definition at line 34 of file ImageProcessorUtilityClasses.h. Referenced by VLCImageProcessor::calcEdgeAngle(), SlamImageProcessor::calcEdgeAngle(), GT2005ImageProcessor::calcEdgeAngle(), VLCImageProcessor::clusterRobots(), SlamImageProcessor::clusterRobots(), GT2005PlayerSpecialist::detectBlueRobots(), GT2005PlayerSpecialist::detectRedRobots(), VLCImageProcessor::execute(), SlamImageProcessor::execute(), GT2005ImageProcessor::execute(), SlamImageProcessor::filterPercepts(), VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::publishResults(), VLCImageProcessor::scan(), SlamImageProcessor::scan(), and GT2005ImageProcessor::scan(). |
|
|
The rotation from a horizon-aligned coordinate system to the image coordinate system. The horizon-aligned coordinate system is defined as follows:
Definition at line 46 of file ImageProcessorUtilityClasses.h. Referenced by VLCImageProcessor::execute(), GT2005ImageProcessor::execute(), VLCImageProcessor::scanColumns(), and GT2005ImageProcessor::scanColumns(). |
|
|
The rotation from the image coordinates to the horizon-aligned coordinates.
Definition at line 51 of file ImageProcessorUtilityClasses.h. Referenced by VLCGoalRecognizer::analyzeGoalpost(), GT2005GoalRecognizer::analyzeGoalpost(), VLCImageProcessor::execute(), GT2005ImageProcessor::execute(), horizonAlignedXOf(), horizonAlignedYOf(), VLCImageProcessor::scanColumns(), GT2005ImageProcessor::scanColumns(), and toHorizonAligned(). |
|
|
The distance of the top left corner to the horizon. This value is the same as the y-coordinate of the horizon in the horizon-aligned coordinate system. Definition at line 57 of file ImageProcessorUtilityClasses.h. Referenced by VLCImageProcessor::execute(), GT2005ImageProcessor::execute(), VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::interpretResults(), VLCImageProcessor::scanColumns(), and GT2005ImageProcessor::scanColumns(). |
1.3.6