#include <GT2004FlagSpecialist.h>
Collaboration diagram for GT2004FlagSpecialist:
Public Member Functions | |
GT2004FlagSpecialist (const ColorCorrector &) | |
void | init (const Image &image) |
Initializes the flag specialist. | |
void | searchFlags (const Image &image, const ColorTable &colorTable, const CameraMatrix &cameraMatrix, colorClass color, bool pinkIsTop, const Geometry::Line horizonLine, int x, int y) |
Searches for the flag in the image, starting from the specified point. | |
void | getFlagPercept (const CameraMatrix &cameraMatrix, const CameraMatrix &prevCameraMatrix, const CameraInfo &cameraInfo, const Geometry::Line horizonLine, LandmarksPercept &landmarksPercept) |
DECLARE_DEBUG_IMAGE (imageProcessorFlags) | |
Used for visualization of the flag scans. | |
Private Types | |
enum | { maxNumberOfBoundingBoxes = 6 } |
enum | { numberOfHorizontalScans = 5, numberOfVerticalScans = 3 } |
enum | Direction { up, down, left, right } |
enum | DebugType { initial, vertical, horizontal } |
Private Member Functions | |
void | estimateOffsetForFlags (LandmarksPercept &landmarksPercept, const Vector2< double > &cameraOffset) |
bool | findEndOfFlag (const Image &image, const CameraInfo &bwCameraInfo, const ColorTable &colorTable, const Vector2< int > start, Vector2< double > horizonDirection, Direction direction, Vector2< int > &destination, colorClass color, bool pinkIsTop, bool startIsInTop, DebugType type, int &countPixel, int &countTop, int &countBottom) |
Private Attributes | |
const ColorCorrector & | colorCorrector |
int | imageWidth |
int | imageHeight |
Vector2< int > | north |
Vector2< int > | east |
Vector2< int > | south |
Vector2< int > | west |
Vector2< int > | start |
Vector2< int > | destination |
double | boundingBoxTop [maxNumberOfBoundingBoxes][6] |
double | boundingBoxBottom [maxNumberOfBoundingBoxes][6] |
double | boundingBoxLeft [maxNumberOfBoundingBoxes][6] |
double | boundingBoxRight [maxNumberOfBoundingBoxes][6] |
bool | boundingBoxTopValid [maxNumberOfBoundingBoxes][6] |
bool | boundingBoxBottomValid [maxNumberOfBoundingBoxes][6] |
bool | boundingBoxLeftValid [maxNumberOfBoundingBoxes][6] |
bool | boundingBoxRightValid [maxNumberOfBoundingBoxes][6] |
int | numberOfBoundingBoxes [6] |
int | bestBoundingBox [6] |
Definition at line 22 of file GT2004FlagSpecialist.h.
|
Definition at line 67 of file GT2004FlagSpecialist.h. |
|
Definition at line 68 of file GT2004FlagSpecialist.h. |
|
Definition at line 84 of file GT2004FlagSpecialist.h. |
|
Definition at line 85 of file GT2004FlagSpecialist.h. |
|
Definition at line 16 of file GT2004FlagSpecialist.cpp. |
|
Initializes the flag specialist.
Definition at line 21 of file GT2004FlagSpecialist.cpp. References INIT_DEBUG_IMAGE, and numberOfBoundingBoxes. Referenced by GT2004BeaconDetector::execute(). |
|
Searches for the flag in the image, starting from the specified point.
Definition at line 31 of file GT2004FlagSpecialist.cpp. References Geometry::Line::base, colorClass, DEBUG_IMAGE_SET_PIXEL_BLUE, DEBUG_IMAGE_SET_PIXEL_GREEN, DEBUG_IMAGE_SET_PIXEL_RED, DEBUG_IMAGE_SET_PIXEL_YELLOW, Geometry::Line::direction, DOT, east, CameraInfo::focalLength, CameraInfo::focalLengthInv, Geometry::getDistanceToLine(), north, CameraInfo::opticalCenter, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, south, sqr, west, Vector2< V >::x, Vector2< double >::x, Vector2< V >::y, and Vector2< double >::y. Referenced by GT2004BeaconDetector::scanForBeaconEdges(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Definition at line 271 of file GT2004FlagSpecialist.cpp. References colorClass, CORRECTED_COLOR_CLASS, DEBUG_IMAGE_SET_PIXEL_RED, DEBUG_IMAGE_SET_PIXEL_Y, Vector2< V >::x, Vector2< double >::x, Vector2< V >::y, and Vector2< double >::y. |
|
Used for visualization of the flag scans.
|
|
Definition at line 49 of file GT2004FlagSpecialist.h. |
|
Definition at line 51 of file GT2004FlagSpecialist.h. |
|
Definition at line 52 of file GT2004FlagSpecialist.h. |
|
Definition at line 55 of file GT2004FlagSpecialist.h. |
|
Definition at line 56 of file GT2004FlagSpecialist.h. |
|
Definition at line 57 of file GT2004FlagSpecialist.h. |
|
Definition at line 58 of file GT2004FlagSpecialist.h. |
|
Definition at line 59 of file GT2004FlagSpecialist.h. |
|
Definition at line 60 of file GT2004FlagSpecialist.h. |
|
Definition at line 70 of file GT2004FlagSpecialist.h. |
|
Definition at line 71 of file GT2004FlagSpecialist.h. |
|
Definition at line 72 of file GT2004FlagSpecialist.h. |
|
Definition at line 73 of file GT2004FlagSpecialist.h. |
|
Definition at line 75 of file GT2004FlagSpecialist.h. |
|
Definition at line 76 of file GT2004FlagSpecialist.h. |
|
Definition at line 77 of file GT2004FlagSpecialist.h. |
|
Definition at line 78 of file GT2004FlagSpecialist.h. |
|
Definition at line 80 of file GT2004FlagSpecialist.h. Referenced by init(). |
|
Definition at line 82 of file GT2004FlagSpecialist.h. |