imageprocessing.h File Reference

#include "CVIPtoolsInc.h"
#include <list>
#include "Entity.h"

Go to the source code of this file.

Defines

#define _IMAGEPROCESSING_H_   1
#define ROBOT_MINAREA   150
#define ROBOT_MAXAREA   400
#define SUBJECT_MINAREA   50
#define SUBJECT_MAXAREA   10000
#define GOAL_MINAREA   400
#define GOAL_MAXAREA   10000
#define RGB_RED   1
#define RGB_GREEN   2
#define RGB_BLUE   3

Typedefs

typedef std::list< class EntityENTITYLIST
typedef std::list< class Entity
>::iterator 
ENTITYLIST_ITER

Functions

int init_imageprocessing ()
bool get_first_non_null_point (Image *inputImage, int *row, int *column)
Image * get_component (Image *cvipImage, int color)
Image * find_color_entities (Image *inputimage, int color, ENTITYLIST *entitylist)
bool find_labeled_entity (Image *inputImage, int &row, int &col, int &label)
void print_entities (ENTITYLIST *entitylist)


Define Documentation

#define _IMAGEPROCESSING_H_   1
 

Definition at line 2 of file imageprocessing.h.

#define GOAL_MAXAREA   10000
 

Definition at line 11 of file imageprocessing.h.

Referenced by find_color_entities().

#define GOAL_MINAREA   400
 

Definition at line 10 of file imageprocessing.h.

#define RGB_BLUE   3
 

Definition at line 15 of file imageprocessing.h.

Referenced by find_color_entities(), get_component(), and MyApp::OnRun().

#define RGB_GREEN   2
 

Definition at line 14 of file imageprocessing.h.

Referenced by find_color_entities(), get_component(), and MyApp::OnRun().

#define RGB_RED   1
 

Definition at line 13 of file imageprocessing.h.

Referenced by find_color_entities(), get_component(), and MyApp::OnRun().

#define ROBOT_MAXAREA   400
 

Definition at line 7 of file imageprocessing.h.

#define ROBOT_MINAREA   150
 

Definition at line 6 of file imageprocessing.h.

#define SUBJECT_MAXAREA   10000
 

Definition at line 9 of file imageprocessing.h.

Referenced by find_color_entities().

#define SUBJECT_MINAREA   50
 

Definition at line 8 of file imageprocessing.h.

Referenced by find_color_entities().


Typedef Documentation

typedef std::list<class Entity> ENTITYLIST
 

Definition at line 22 of file imageprocessing.h.

typedef std::list<class Entity>::iterator ENTITYLIST_ITER
 

Definition at line 23 of file imageprocessing.h.


Function Documentation

Image* find_color_entities Image *  inputimage,
int  color,
ENTITYLIST entitylist
 

Definition at line 143 of file imageprocessing.cpp.

References area(), find_labeled_entity(), get_component(), get_first_non_null_point(), GOAL_MAXAREA, RGB_BLUE, RGB_GREEN, RGB_RED, Entity::setColor(), Entity::setType(), Entity::setX(), Entity::setY(), Entity::SUBJECT, SUBJECT_MAXAREA, SUBJECT_MINAREA, threshold_blue, threshold_green, and threshold_red.

Referenced by MyApp::OnRun().

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

Definition at line 292 of file imageprocessing.cpp.

Referenced by find_color_entities().

Image* get_component Image *  cvipImage,
int  color
 

Definition at line 24 of file imageprocessing.cpp.

References RGB_BLUE, RGB_GREEN, RGB_RED, threshold_blue, threshold_green, and threshold_red.

Referenced by find_color_entities().

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

Definition at line 263 of file imageprocessing.cpp.

Referenced by find_color_entities().

int init_imageprocessing  ) 
 

Definition at line 11 of file imageprocessing.cpp.

References threshold_blue, threshold_green, and threshold_red.

Referenced by MyApp::OnRun().

void print_entities ENTITYLIST entitylist  ) 
 

Definition at line 241 of file minimal.cpp.

References Entity::GOAL, Entity::ROBOT, and Entity::SUBJECT.

Referenced by MyApp::OnRun().


Generated on Wed Nov 29 01:27:43 2006 by  doxygen 1.4.6