#include <RDefaultStrategy.h>
Inheritance diagram for RDefaultStrategy:


Public Member Functions | |
| RDefaultStrategy (RasterImageProcessor &processor) | |
| The Constructor. | |
| virtual | ~RDefaultStrategy () |
| Destructor. | |
| void | execute () |
| Executes the strategy. | |
| void | init () |
| Initializes the strategy and its specialists. | |
Private Member Functions | |
| void | preScan () |
| Executes the pre-scan. | |
| void | postScan () |
| Executes the post-scan. | |
| void | postProcessing () |
| Executes the post-processing. | |
| void | checkBall (int x, int y, int prePost) |
| Helper method for the scans. | |
| void | checkField (int x, int y, int prePost) |
| Helper method for the scans. | |
| void | checkPlayer (int x, int y, int prePost) |
| Helper method for the scans. | |
| void | checkBox (int x, int y, int prePost) |
| Helper method for the scans. | |
| void | checkBridge (int x, int y) |
| Helper method for the scans. | |
| void | checkRedLine (int x, int y) |
| Helper method for the scans. | |
Private Attributes | |
| RBallSpecialist2 * | ballSpecialist |
| A pointer to the ball specialist. | |
| RFieldSpecialist * | fieldSpecialist |
| A pointer to the field specialist (for Open Challenge 04). | |
| REnemySpecialist * | enemySpecialist |
| A pointer to the player specialist. | |
| BoxSpecialist * | boxSpecialist |
| A pointer to the box specialist (detects landmarks and goals). | |
| RBridgeSpecialist * | bridgeSpecialist |
| A pointer to the bridge specialist (for Open Challenge 04). | |
| REdgeDetection | edgeScanner |
| The edge detector. | |
| RFieldStateMachine | fieldDSA |
| The point state machine. | |
| colorClass | lastColor |
| The color of the previous pixel. | |
| colorClass | currentColor |
| The current color. | |
| int | width |
| Width of the image. | |
| int | height |
| Height of the image. | |
| int | ballFactor |
| The subsampling factor for the ball. | |
| int | fieldFactor |
| The subsampling factor for the field. | |
| int | goalFactor |
| The subsampling factor for the goals. | |
| int | playerFactor |
| The subsampling factor for the players. | |
| int | lmFactor |
| The subsampling factor for the landmarks. | |
| colorClass | BoxColor |
| A temporary variable. | |
| colorClass | bridgeColor |
| A temporary variable. | |
| bool | active [7] |
| Activation array for the several specialists. | |
| int | postThreshold |
| Threshold for the edge detection of the post scan. | |
Hyung Won Koh
Manuel Neubach
Definition at line 33 of file RDefaultStrategy.h.
|
|
The Constructor. For creation the RasterImageProcessor is needed.
Definition at line 14 of file RDefaultStrategy.cpp. References boxSpecialist, bridgeSpecialist, enemySpecialist, InFile::exists(), fieldSpecialist, getLocation(), idText, RasterImageProcessor::marginX, RasterImageProcessor::marginY, OUTPUT, postThreshold, InStream< InFile, InBinary >::read(), RasterImageProcessor::setSpecialist(), and REdgeDetection::threshold. |
Here is the call graph for this function:

|
|
Destructor.
Definition at line 87 of file RDefaultStrategy.cpp. References boxSpecialist, bridgeSpecialist, enemySpecialist, and fieldSpecialist. |
|
|
Executes the strategy.
Implements RasterStrategy. Definition at line 132 of file RDefaultStrategy.cpp. References postProcessing(), and preScan(). |
Here is the call graph for this function:

|
|
Initializes the strategy and its specialists.
Implements RasterStrategy. Definition at line 96 of file RDefaultStrategy.cpp. References boxSpecialist, bridgeSpecialist, Image::cameraInfo, ImageProcessorInterfaces::cameraMatrix, enemySpecialist, fieldSpecialist, ImageProcessorInterfaces::image, RBridgeSpecialist::init(), REnemySpecialist::init(), BoxSpecialist::init(), RFieldSpecialist::init(), RBallSpecialist2::init(), CameraMatrix::isValid, RasterSpecialist::preScanNeeded, CameraInfo::resolutionHeight, and CameraInfo::resolutionWidth. |
Here is the call graph for this function:

|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Executes the post-processing.
Definition at line 122 of file RDefaultStrategy.cpp. References boxSpecialist, bridgeSpecialist, enemySpecialist, RFieldSpecialist::executePostProcessing(), RBridgeSpecialist::executePostProcessing(), BoxSpecialist::executePostProcessing(), REnemySpecialist::executePostProcessing(), RBallSpecialist2::executePostProcessing(), and fieldSpecialist. Referenced by execute(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Helper method for the scans.
Definition at line 477 of file RDefaultStrategy.cpp. References currentColor, RBallSpecialist2::invokeOnPreScan(), and RasterImageProcessor::marginX. Referenced by preScan(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Helper method for the scans.
Definition at line 491 of file RDefaultStrategy.cpp. References currentColor, fieldFactor, fieldSpecialist, RFieldSpecialist::invokeOnPostScan(), and RFieldSpecialist::invokeOnPreScan(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Helper method for the scans.
Definition at line 460 of file RDefaultStrategy.cpp. References currentColor, enemySpecialist, REnemySpecialist::invokeOnPreScan(), and RasterImageProcessor::marginX. Referenced by preScan(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Helper method for the scans.
Definition at line 513 of file RDefaultStrategy.cpp. References BoxColor, boxSpecialist, currentColor, BoxSpecialist::invokeOnPreScan(), RasterImageProcessor::marginX, and noColor. Referenced by preScan(). |
Here is the call graph for this function:

|
||||||||||||
|
Helper method for the scans.
Definition at line 553 of file RDefaultStrategy.cpp. References bridgeColor, bridgeSpecialist, currentColor, RBridgeSpecialist::invokeOnPreScan(), RasterImageProcessor::marginX, and noColor. Referenced by preScan(). |
Here is the call graph for this function:

|
||||||||||||
|
Helper method for the scans.
Definition at line 538 of file RDefaultStrategy.cpp. References currentColor, fieldSpecialist, and RFieldSpecialist::invokeOnPreScan(). Referenced by preScan(). |
Here is the call graph for this function:

|
|
A pointer to the ball specialist.
Definition at line 93 of file RDefaultStrategy.h. |
|
|
A pointer to the field specialist (for Open Challenge 04).
Definition at line 95 of file RDefaultStrategy.h. Referenced by checkField(), checkRedLine(), init(), postProcessing(), preScan(), RDefaultStrategy(), and ~RDefaultStrategy(). |
|
|
A pointer to the player specialist.
Definition at line 97 of file RDefaultStrategy.h. Referenced by checkPlayer(), init(), postProcessing(), preScan(), RDefaultStrategy(), and ~RDefaultStrategy(). |
|
|
A pointer to the box specialist (detects landmarks and goals).
Definition at line 99 of file RDefaultStrategy.h. Referenced by checkBox(), init(), postProcessing(), postScan(), preScan(), RDefaultStrategy(), and ~RDefaultStrategy(). |
|
|
A pointer to the bridge specialist (for Open Challenge 04).
Definition at line 101 of file RDefaultStrategy.h. Referenced by checkBridge(), init(), postProcessing(), preScan(), RDefaultStrategy(), and ~RDefaultStrategy(). |
|
|
The edge detector.
Definition at line 103 of file RDefaultStrategy.h. |
|
|
The point state machine.
Definition at line 105 of file RDefaultStrategy.h. Referenced by postScan(). |
|
|
The color of the previous pixel.
Definition at line 107 of file RDefaultStrategy.h. Referenced by preScan(). |
|
|
The current color.
Definition at line 109 of file RDefaultStrategy.h. Referenced by checkBall(), checkBox(), checkBridge(), checkField(), checkPlayer(), checkRedLine(), and preScan(). |
|
|
Width of the image.
Definition at line 111 of file RDefaultStrategy.h. |
|
|
Height of the image.
Definition at line 113 of file RDefaultStrategy.h. |
|
|
The subsampling factor for the ball.
Definition at line 115 of file RDefaultStrategy.h. |
|
|
The subsampling factor for the field.
Definition at line 117 of file RDefaultStrategy.h. Referenced by checkField(). |
|
|
The subsampling factor for the goals.
Definition at line 119 of file RDefaultStrategy.h. |
|
|
The subsampling factor for the players.
Definition at line 121 of file RDefaultStrategy.h. |
|
|
The subsampling factor for the landmarks.
Definition at line 123 of file RDefaultStrategy.h. |
|
|
A temporary variable.
Definition at line 125 of file RDefaultStrategy.h. Referenced by checkBox(), and preScan(). |
|
|
A temporary variable.
Definition at line 127 of file RDefaultStrategy.h. Referenced by checkBridge(), and preScan(). |
|
|
Activation array for the several specialists.
Definition at line 129 of file RDefaultStrategy.h. |
|
|
Threshold for the edge detection of the post scan.
Definition at line 131 of file RDefaultStrategy.h. Referenced by RDefaultStrategy(). |
1.3.6