#include <REnemySpecialist.h>
Inheritance diagram for REnemySpecialist:
Public Member Functions | |
REnemySpecialist (RasterImageProcessor &processor, RasterStrategy &strat) | |
virtual | ~REnemySpecialist () |
void | invokeOnPostScan (int x, int y) |
Invokes the specialist in the second scan stage at position (x,y) (this member should be replaced later). | |
void | executePostProcessing () |
Executes the detection algorithm. | |
void | invokeOnPreScan (int x, int y) |
Invokes the specialist in the first scan stage at position (x,y) (this member should be replaced later). | |
virtual int | getType () |
getter for the type of specialist | |
virtual void | init () |
Initializes the specialist before running the detection algorithm. | |
Vector2< int > | calculateFarestPoint (std::list< LinePair > enemyLines) |
Vector2< int > | calculateFarestPointCOG (int numberOfFootPoints, std::list< LinePair > enemyLines) |
Vector2< int > | calculateFarestPointFastCOG (std::list< LinePair > enemyLines) |
Vector2< int > | calculatePointOnFieldFromSegment (std::list< LinePair > enemyLines) |
Public Attributes | |
int | maximums [2] |
int | maxCountSum |
int | countSum |
int | max |
Private Types | |
typedef const unsigned char * | I_Pin |
Private Member Functions | |
bool | isCross (const LinePair &horizontal, const LinePair vertical) |
Static Private Member Functions | |
void | sort (int footPointDistance[], Vector2< double > footPoint[], const int &start, const int &end) |
Private Attributes | |
RasterStrategy * | strategy |
std::vector< RasterSpecialist::LinePair > | columns |
std::vector< RasterSpecialist::LinePair > | lines |
Vector2< int > | tempP |
Geometry::Line | horizon |
The horizon. | |
int | leftBorderOfNewLp |
|
Reimplemented from RasterSpecialist. Definition at line 21 of file REnemySpecialist.h. |
|
Definition at line 19 of file REnemySpecialist.cpp. |
|
Definition at line 27 of file REnemySpecialist.cpp. |
|
Invokes the specialist in the second scan stage at position (x,y) (this member should be replaced later).
Reimplemented from RasterSpecialist. Definition at line 190 of file REnemySpecialist.cpp. References DOT, RasterStrategy::insidePlayer, LINE, and tempP. |
|
Executes the detection algorithm.
Reimplemented from RasterSpecialist. Definition at line 31 of file REnemySpecialist.cpp. References PlayersPercept::addBluePlayer(), PlayersPercept::addRedPlayer(), calculateFarestPointFastCOG(), RasterSpecialist::createSegmentsFromLines2(), Geometry::distance(), RasterSpecialist::getColor(), SinglePlayerPercept::offset, ImageProcessorInterfaces::playersPercept, SinglePlayerPercept::validity, Vector2< double >::x, Vector2< V >::x, Vector2< double >::y, and Vector2< V >::y. Referenced by RDefaultStrategy::postProcessing(). |
Here is the call graph for this function:
|
Invokes the specialist in the first scan stage at position (x,y) (this member should be replaced later).
Reimplemented from RasterSpecialist. Definition at line 172 of file REnemySpecialist.cpp. References DOT, RasterStrategy::insidePlayer, LINE, and tempP. Referenced by RDefaultStrategy::checkPlayer(), and RDefaultStrategy::preScan(). |
|
getter for the type of specialist
Implements RasterSpecialist. Definition at line 205 of file REnemySpecialist.cpp. References __REnemySpecialist. |
|
Initializes the specialist before running the detection algorithm.
Implements RasterSpecialist. Definition at line 489 of file REnemySpecialist.cpp. References columns. Referenced by RDefaultStrategy::init(). |
|
Here is the call graph for this function:
|
Definition at line 381 of file REnemySpecialist.cpp. References Geometry::calculatePointOnField(), Image::cameraInfo, ImageProcessorInterfaces::cameraMatrix, DOT, Geometry::getDistanceToLine(), RasterImageProcessor::getHorizon(), ImageProcessorInterfaces::image, sort(), Vector2< V >::x, and Vector2< V >::y. |
Here is the call graph for this function:
|
Definition at line 311 of file REnemySpecialist.cpp. References Geometry::calculatePointOnField(), Image::cameraInfo, ImageProcessorInterfaces::cameraMatrix, DOT, Geometry::getDistanceToLine(), RasterImageProcessor::getHorizon(), ImageProcessorInterfaces::image, Vector2< V >::x, and Vector2< V >::y. Referenced by executePostProcessing(). |
Here is the call graph for this function:
|
Definition at line 446 of file REnemySpecialist.cpp. References Geometry::calculatePointOnField(), Image::cameraInfo, ImageProcessorInterfaces::cameraMatrix, DOT, and ImageProcessorInterfaces::image. |
Here is the call graph for this function:
|
Definition at line 266 of file REnemySpecialist.cpp. Referenced by calculateFarestPointCOG(). |
|
Definition at line 43 of file REnemySpecialist.h. |
|
Definition at line 36 of file REnemySpecialist.h. |
|
Definition at line 37 of file REnemySpecialist.h. |
|
Definition at line 38 of file REnemySpecialist.h. |
|
Definition at line 39 of file REnemySpecialist.h. |
|
Definition at line 50 of file REnemySpecialist.h. |
|
Definition at line 51 of file REnemySpecialist.h. Referenced by init(). |
|
Definition at line 52 of file REnemySpecialist.h. |
|
Definition at line 53 of file REnemySpecialist.h. Referenced by invokeOnPostScan(), and invokeOnPreScan(). |
|
The horizon.
Definition at line 54 of file REnemySpecialist.h. |
|
Definition at line 56 of file REnemySpecialist.h. |