Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Tools/Debugging/DebugImages.h File Reference

Macros to manipulate and send debug images. More...

`#include "Tools/Debugging/Debugging.h"`

Include dependency graph for DebugImages.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | Images
| Contains IDs for different (debug) image types as well as a method to output their names. More...
## Defines
#define | DECLARE_DEBUG_COLOR_CLASS_IMAGE(id) ColorClassImage id##ColorClassImage
| Declares a debug image.
#define | SEND_DEBUG_COLOR_CLASS_IMAGE(id) INFO(send_##id##_image, idDebugColorClassImage, bin, Images::id << id##ColorClassImage)
| Sends the debug image with the specified id (Images::ImageID).
#define | DECLARE_DEBUG_IMAGE(id) static bool id##Dummy
#define | INIT_DEBUG_IMAGE(id, image) /**/
#define | GENERATE_DEBUG_IMAGE(id, expression) /**/
#define | SEND_DEBUG_IMAGE(id) /**/
#define | DEBUG_IMAGE_SET_PIXEL_Y(id, xx, yy, y) /**/
#define | DEBUG_IMAGE_SET_PIXEL_YUV(id, xx, yy, y, u, v) /**/
#define | DEBUG_IMAGE_SET_PIXEL_BLACK(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_WHITE(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_GREEN(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_GRAY(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_LIGHT_GRAY(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_DARK_GRAY(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_DARK_GREEN(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_ORANGE(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_YELLOW(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_RED(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_MAUVE(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_BLUE(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_PINK(id, xx, yy) /**/
#define | DEBUG_IMAGE_SET_PIXEL_DARK_BLUE(id, xx, yy) /**/
#define | DEBUG_IMAGE_GET_PIXEL_Y(id, xx, yy) 0
#define | DEBUG_IMAGE_GET_PIXEL_U(id, xx, yy) 0
#define | DEBUG_IMAGE_GET_PIXEL_V(id, xx, yy) 0
#define | N_DECLARE_DEBUG_IMAGE(id) /**/
| no new mechanisms
#define | N_INIT_DEBUG_IMAGE(id, image) /**/
#define | N_INIT_DEBUG_IMAGE_BLACK(id, image) /**/
#define | N_SEND_DEBUG_IMAGE(id) /**/
#define | N_SEND_DEBUG_IMAGE_AS_JPEG(id) /**/
#define | N_SEND_DEBUG_IMAGE_AS_JPEG2(id) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_YUV(id, xx, yy, y, u, v) /**/
#define | N_DEBUG_IMAGE_GET_PIXEL_Y(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_GET_PIXEL_U(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_GET_PIXEL_V(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_BLACK(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_WHITE(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_GREEN(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_LIGHT_GRAY(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_GRAY(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_DARK_GRAY(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_DARK_GREEN(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_ORANGE(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_YELLOW(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_RED(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_MAUVE(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_BLUE(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_PINK(id, xx, yy) /**/
#define | N_DEBUG_IMAGE_SET_PIXEL_DARK_BLUE(id, xx, yy) /**/
#define | N_DECLARE_DEBUG_GRAY_SCALE_IMAGE(id) /**/
#define | N_INIT_DEBUG_GRAY_SCALE_IMAGE(id, image) /**/
#define | N_SET_COLORED_PIXEL_IN_GRAY_SCALE_IMAGE(id, x, y, color) /**/
#define | N_SEND_DEBUG_GRAY_SCALE_IMAGE(id) /**/
#define | N_DECLARE_DEBUG_COLOR_CLASS_IMAGE(id) /**/
#define | N_SEND_DEBUG_COLOR_CLASS_IMAGE(id) /**/
#define | N_GENERATE_DEBUG_IMAGE(id, expression) /**/

## Detailed Description

Macros to manipulate and send debug images.

Author:
  Matthias Jüngel

Definition in file DebugImages.h.

## Define Documentation

#define DECLARE_DEBUG_COLOR_CLASS_IMAGE | ( | id |  | ) | ColorClassImage id##ColorClassImage

  | Declares a debug image. Parameters:
  id | An image id (Images::ImageID)
Definition at line 31 of file DebugImages.h.

#define SEND_DEBUG_COLOR_CLASS_IMAGE | ( | id |  | ) | INFO(send_##id##_image, idDebugColorClassImage, bin, Images::id << id##ColorClassImage)

| Sends the debug image with the specified id (Images::ImageID). Definition at line 34 of file DebugImages.h. Referenced by SlamImageProcessor::execute().

#define DECLARE_DEBUG_IMAGE | ( | id |  | ) | static bool id##Dummy

| Definition at line 138 of file DebugImages.h. Referenced by BarCodeReader::execute().

#define INIT_DEBUG_IMAGE | ( | id,
|  | image |  | ) | /**/

| Definition at line 140 of file DebugImages.h. Referenced by BarCodeReader::execute(), VLCImageProcessor::execute(), SlamImageProcessor::execute(), SlamGoalRecognizer::execute(), GuideDogRobotSpecialist::execute(), GT2005ImageProcessor::execute(), GoalRecognizer::getGoalPercept(), VLCFlagSpecialist::init(), SlamFlagSpecialist::init(), GT2005FlagSpecialist::init(), VLCGoalRecognizer::notifyAboutNewImage(), and GT2005GoalRecognizer::notifyAboutNewImage().

#define GENERATE_DEBUG_IMAGE | ( | id,
|  | expression |  | ) | /**/

| Definition at line 142 of file DebugImages.h. Referenced by SlamImageProcessor::execute().

#define SEND_DEBUG_IMAGE | ( | id |  | ) | /**/

| Definition at line 144 of file DebugImages.h. Referenced by BarCodeReader::execute(), SlamImageProcessor::execute(), SlamGoalRecognizer::execute(), GuideDogRobotSpecialist::execute(), VLCFlagSpecialist::getFlagPercept(), SlamFlagSpecialist::getFlagPercept(), GT2005FlagSpecialist::getFlagPercept(), GoalRecognizer::getGoalPercept(), VLCGoalRecognizer::notifyAboutFinish(), and GT2005GoalRecognizer::notifyAboutFinish().

#define DEBUG_IMAGE_SET_PIXEL_Y | ( | id,
|  | xx,
|  | yy,
|  | y |  | ) | /**/

| Definition at line 146 of file DebugImages.h. Referenced by VLCFlagSpecialist::findEndOfFlag(), SlamFlagSpecialist::findEndOfFlag(), and GT2005FlagSpecialist::findEndOfFlag().

#define DEBUG_IMAGE_SET_PIXEL_YUV | ( | id,
|  | xx,
|  | yy,
|  | y,
|  | u,
|  | v |  | ) | /**/

| Definition at line 148 of file DebugImages.h.

#define DEBUG_IMAGE_SET_PIXEL_BLACK | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 150 of file DebugImages.h. Referenced by VLCImageProcessor::scan(), SlamImageProcessor::scan(), GT2005ImageProcessor::scan(), SlamGoalRecognizer::scanHorizontalForGoals(), GoalRecognizer::scanHorizontalForGoals(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

#define DEBUG_IMAGE_SET_PIXEL_WHITE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 152 of file DebugImages.h. Referenced by SlamGoalRecognizer::scanHorizontalForGoals(), GoalRecognizer::scanHorizontalForGoals(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

#define DEBUG_IMAGE_SET_PIXEL_GREEN | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 154 of file DebugImages.h. Referenced by BarCodeReader::execute(), VLCImageProcessor::scan(), SlamImageProcessor::scan(), GT2005ImageProcessor::scan(), SlamGoalRecognizer::scanLinesForGoals(), GoalRecognizer::scanLinesForGoals(), VLCFlagSpecialist::searchFlags(), SlamFlagSpecialist::searchFlags(), and GT2005FlagSpecialist::searchFlags().

#define DEBUG_IMAGE_SET_PIXEL_GRAY | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 156 of file DebugImages.h. Referenced by SlamGoalRecognizer::scanHorizontalForGoals(), GoalRecognizer::scanHorizontalForGoals(), SlamGoalRecognizer::scanLinesForGoals(), GoalRecognizer::scanLinesForGoals(), and GuideDogRobotSpecialist::scanParallelToHorizon().

#define DEBUG_IMAGE_SET_PIXEL_LIGHT_GRAY | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 158 of file DebugImages.h.

#define DEBUG_IMAGE_SET_PIXEL_DARK_GRAY | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 160 of file DebugImages.h.

#define DEBUG_IMAGE_SET_PIXEL_DARK_GREEN | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 162 of file DebugImages.h.

#define DEBUG_IMAGE_SET_PIXEL_ORANGE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 164 of file DebugImages.h.

#define DEBUG_IMAGE_SET_PIXEL_YELLOW | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 166 of file DebugImages.h. Referenced by VLCImageProcessor::scan(), SlamImageProcessor::scan(), GT2005ImageProcessor::scan(), VLCFlagSpecialist::searchFlags(), SlamFlagSpecialist::searchFlags(), and GT2005FlagSpecialist::searchFlags().

#define DEBUG_IMAGE_SET_PIXEL_RED | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 168 of file DebugImages.h. Referenced by VLCFlagSpecialist::findEndOfFlag(), SlamFlagSpecialist::findEndOfFlag(), GT2005FlagSpecialist::findEndOfFlag(), VLCImageProcessor::scan(), SlamImageProcessor::scan(), GT2005ImageProcessor::scan(), SlamGoalRecognizer::scanLinesForGoals(), GoalRecognizer::scanLinesForGoals(), GuideDogRobotSpecialist::scanParallelToHorizon(), VLCFlagSpecialist::searchFlags(), SlamFlagSpecialist::searchFlags(), and GT2005FlagSpecialist::searchFlags().

#define DEBUG_IMAGE_SET_PIXEL_MAUVE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 170 of file DebugImages.h.

#define DEBUG_IMAGE_SET_PIXEL_BLUE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 172 of file DebugImages.h. Referenced by SlamGoalRecognizer::scanLinesForGoals(), GoalRecognizer::scanLinesForGoals(), VLCFlagSpecialist::searchFlags(), SlamFlagSpecialist::searchFlags(), and GT2005FlagSpecialist::searchFlags().

#define DEBUG_IMAGE_SET_PIXEL_PINK | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 174 of file DebugImages.h. Referenced by VLCImageProcessor::scan(), SlamImageProcessor::scan(), GT2005ImageProcessor::scan(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

#define DEBUG_IMAGE_SET_PIXEL_DARK_BLUE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 176 of file DebugImages.h.

#define DEBUG_IMAGE_GET_PIXEL_Y | ( | id,
|  | xx,
|  | yy |  | ) | 0

| Definition at line 178 of file DebugImages.h.

#define DEBUG_IMAGE_GET_PIXEL_U | ( | id,
|  | xx,
|  | yy |  | ) | 0

| Definition at line 179 of file DebugImages.h.

#define DEBUG_IMAGE_GET_PIXEL_V | ( | id,
|  | xx,
|  | yy |  | ) | 0

| Definition at line 180 of file DebugImages.h.

#define N_DECLARE_DEBUG_IMAGE | ( | id |  | ) | /**/

| no new mechanisms Definition at line 285 of file DebugImages.h.

#define N_INIT_DEBUG_IMAGE | ( | id,
|  | image |  | ) | /**/

| Definition at line 287 of file DebugImages.h.

#define N_INIT_DEBUG_IMAGE_BLACK | ( | id,
|  | image |  | ) | /**/

| Definition at line 289 of file DebugImages.h.

#define N_SEND_DEBUG_IMAGE | ( | id |  | ) | /**/

| Definition at line 291 of file DebugImages.h.

#define N_SEND_DEBUG_IMAGE_AS_JPEG | ( | id |  | ) | /**/

| Definition at line 293 of file DebugImages.h.

#define N_SEND_DEBUG_IMAGE_AS_JPEG2 | ( | id |  | ) | /**/

| Definition at line 295 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_YUV | ( | id,
|  | xx,
|  | yy,
|  | y,
|  | u,
|  | v |  | ) | /**/

| Definition at line 297 of file DebugImages.h.

#define N_DEBUG_IMAGE_GET_PIXEL_Y | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 299 of file DebugImages.h.

#define N_DEBUG_IMAGE_GET_PIXEL_U | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 301 of file DebugImages.h.

#define N_DEBUG_IMAGE_GET_PIXEL_V | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 303 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_BLACK | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 305 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_WHITE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 307 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_GREEN | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 309 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_LIGHT_GRAY | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 311 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_GRAY | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 313 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_DARK_GRAY | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 315 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_DARK_GREEN | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 317 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_ORANGE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 319 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_YELLOW | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 321 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_RED | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 323 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_MAUVE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 325 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_BLUE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 327 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_PINK | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 329 of file DebugImages.h.

#define N_DEBUG_IMAGE_SET_PIXEL_DARK_BLUE | ( | id,
|  | xx,
|  | yy |  | ) | /**/

| Definition at line 331 of file DebugImages.h.

#define N_DECLARE_DEBUG_GRAY_SCALE_IMAGE | ( | id |  | ) | /**/

| Definition at line 335 of file DebugImages.h.

#define N_INIT_DEBUG_GRAY_SCALE_IMAGE | ( | id,
|  | image |  | ) | /**/

| Definition at line 337 of file DebugImages.h. Referenced by VLCImageProcessor::execute(), GT2005ImageProcessor::execute(), and GT2005GoalRecognizer::notifyAboutNewImage().

#define N_SET_COLORED_PIXEL_IN_GRAY_SCALE_IMAGE | ( | id,
|  | x,
|  | y,
|  | color |  | ) | /**/

| Definition at line 339 of file DebugImages.h. Referenced by VLCImageProcessor::scan(), and GT2005ImageProcessor::scan().

#define N_SEND_DEBUG_GRAY_SCALE_IMAGE | ( | id |  | ) | /**/

| Definition at line 341 of file DebugImages.h. Referenced by GT2005GoalRecognizer::notifyAboutFinish().

#define N_DECLARE_DEBUG_COLOR_CLASS_IMAGE | ( | id |  | ) | /**/

| Definition at line 345 of file DebugImages.h.

#define N_SEND_DEBUG_COLOR_CLASS_IMAGE | ( | id |  | ) | /**/

| Definition at line 347 of file DebugImages.h.

#define N_GENERATE_DEBUG_IMAGE | ( | id,
|  | expression |  | ) | /**/

| Definition at line 351 of file DebugImages.h.