ImageProcessor.cpp File Reference

#include "stdafx.h"
#include "resource.h"
#include "legoprojectDlg.h"
#include "ImageProcessor.h"
#include "defines.h"

Go to the source code of this file.

Defines

#define WINAPI   __stdcall
#define LOGIMAGE

Functions

void print_entities (List< Entity > *objectlist)
void send_entities (List< Entity > *objectlist)
Image * find_color_objects (Image *inputimage, int color, List< Entity > *objectlist)
Image * get_component (Image *inputImage, int color)
bool get_centroid_off_first_object (Image *inputImage, int *center_row, int *center_col)
bool get_first_non_null_point (Image *inputImage, int *row, int *column)
bool find_labeled_object (Image *inputImage, int &row, int &col, int &label)
bool robot_angle (Image *inputimage, int &center_row, int &center_col, int &angle)
void log_Image (Image *cvipimage, char *description)
 mybriefdef log_Image
void view_logged_Image (CImage *visimg, int number)
Image * Robot_Position_and_Angle (Image *inputImage)
Image * Object_Position_and_Angle (Image *inputImage, int obj_color, int *obj_row, int *obj_col, int *obj_angle)

Variables

int myview = 0
int iImageCount = 0
char szNameFormat [100]
char szFileName [100]


Define Documentation

#define LOGIMAGE
 

#define WINAPI   __stdcall
 

Definition at line 54 of file ImageProcessor.cpp.


Function Documentation

Image* find_color_objects Image *  inputimage,
int  color,
List< Entity > *  objectlist
 

Definition at line 398 of file ImageProcessor.cpp.

References area(), find_labeled_object(), get_component(), get_first_non_null_point(), Entity::GOAL, GOAL_MAXAREA, GOAL_MINAREA, Entity::ROBOT, robot_angle(), ROBOT_MAXAREA, ROBOT_MINAREA, Entity::setAngle(), Entity::setColor(), Entity::setType(), Entity::setX(), Entity::setY(), Entity::SUBJECT, SUBJECT_MAXAREA, and SUBJECT_MINAREA.

Referenced by ImageProcessor::MyAlgorithm().

bool find_labeled_object Image *  inputImage,
int &  row,
int &  col,
int &  label
 

Definition at line 787 of file ImageProcessor.cpp.

Referenced by find_color_objects().

bool get_centroid_off_first_object Image *  inputImage,
int *  center_row,
int *  center_col
 

Definition at line 725 of file ImageProcessor.cpp.

References get_first_non_null_point().

Referenced by Object_Position_and_Angle(), and robot_angle().

Image* get_component Image *  inputImage,
int  color
 

Definition at line 650 of file ImageProcessor.cpp.

References log_Image(), RGB_BLUE, RGB_GREEN, RGB_RED, threshold_blue, threshold_green, and threshold_red.

bool get_first_non_null_point Image *  inputImage,
int *  row,
int *  column
 

Definition at line 757 of file ImageProcessor.cpp.

void log_Image Image *  cvipimage,
char *  description = ""
 

mybriefdef log_Image

mylongdef regle4 Method documentation.

Parameters:
cvipimage The parameter.
Returns:
nothing
See also:
view_logged_Image()

Definition at line 911 of file ImageProcessor.cpp.

References iImageCount, szFileName, and szNameFormat.

Referenced by get_component(), ImageProcessor::MyAlgorithm(), Object_Position_and_Angle(), and robot_angle().

Image* Object_Position_and_Angle Image *  inputImage,
int  obj_color,
int *  obj_row,
int *  obj_col,
int *  obj_angle
 

Definition at line 1036 of file ImageProcessor.cpp.

References get_centroid_off_first_object(), get_component(), and log_Image().

Referenced by Robot_Position_and_Angle().

void print_entities List< Entity > *  objectlist  ) 
 

Definition at line 335 of file ImageProcessor.cpp.

bool robot_angle Image *  inputimage,
int &  center_row,
int &  center_col,
int &  angle
 

Definition at line 826 of file ImageProcessor.cpp.

References get_centroid_off_first_object(), and log_Image().

Referenced by find_color_objects().

Image* Robot_Position_and_Angle Image *  inputImage  ) 
 

Definition at line 1008 of file ImageProcessor.cpp.

References Object_Position_and_Angle().

void send_entities List< Entity > *  objectlist  ) 
 

Definition at line 360 of file ImageProcessor.cpp.

Referenced by ImageProcessor::MyAlgorithm(), and MyApp::OnRun().

void view_logged_Image CImage *  visimg,
int  number
 

Definition at line 952 of file ImageProcessor.cpp.

References szFileName, and szNameFormat.


Variable Documentation

int iImageCount = 0
 

Definition at line 72 of file ImageProcessor.cpp.

Referenced by log_Image(), and ImageProcessor::MyAlgorithm().

int myview = 0
 

Definition at line 56 of file ImageProcessor.cpp.

char szFileName[100]
 

Definition at line 74 of file ImageProcessor.cpp.

Referenced by log_Image(), and view_logged_Image().

char szNameFormat[100]
 

Definition at line 73 of file ImageProcessor.cpp.

Referenced by log_Image(), and view_logged_Image().


Generated on Wed Nov 29 01:18:49 2006 by  doxygen 1.4.6