\section{imageprocessing.h File Reference}
\label{imageprocessing_8h}\index{imageprocessing.h@{imageprocessing.h}}
{\tt \#include \char`\"{}CVIPtools\-Inc.h\char`\"{}}\par
{\tt \#include $<$list$>$}\par
{\tt \#include \char`\"{}Entity.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf \_\-IMAGEPROCESSING\_\-H\_\-}~1
\item 
\#define {\bf ROBOT\_\-MINAREA}~150
\item 
\#define {\bf ROBOT\_\-MAXAREA}~400
\item 
\#define {\bf SUBJECT\_\-MINAREA}~50
\item 
\#define {\bf SUBJECT\_\-MAXAREA}~10000
\item 
\#define {\bf GOAL\_\-MINAREA}~400
\item 
\#define {\bf GOAL\_\-MAXAREA}~10000
\item 
\#define {\bf RGB\_\-RED}~1
\item 
\#define {\bf RGB\_\-GREEN}~2
\item 
\#define {\bf RGB\_\-BLUE}~3
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef std::list$<$ class {\bf Entity} $>$ {\bf ENTITYLIST}
\item 
typedef std::list$<$ class {\bf Entity} $>$::iterator {\bf ENTITYLIST\_\-ITER}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf init\_\-imageprocessing} ()
\item 
bool {\bf get\_\-first\_\-non\_\-null\_\-point} (Image $\ast$input\-Image, int $\ast$row, int $\ast$column)
\item 
Image $\ast$ {\bf get\_\-component} (Image $\ast$cvip\-Image, int color)
\item 
Image $\ast$ {\bf find\_\-color\_\-entities} (Image $\ast$inputimage, int color, {\bf ENTITYLIST} $\ast$entitylist)
\item 
bool {\bf find\_\-labeled\_\-entity} (Image $\ast$input\-Image, int \&row, int \&col, int \&label)
\item 
void {\bf print\_\-entities} ({\bf ENTITYLIST} $\ast$entitylist)
\end{CompactItemize}


\subsection{Define Documentation}
\index{imageprocessing.h@{imageprocessing.h}!_IMAGEPROCESSING_H_@{\_\-IMAGEPROCESSING\_\-H\_\-}}
\index{_IMAGEPROCESSING_H_@{\_\-IMAGEPROCESSING\_\-H\_\-}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-IMAGEPROCESSING\_\-H\_\-~1}\label{imageprocessing_8h_0ef1395b66ed2a35421c5e18f5bc0af8}




Definition at line 2 of file imageprocessing.h.\index{imageprocessing.h@{imageprocessing.h}!GOAL_MAXAREA@{GOAL\_\-MAXAREA}}
\index{GOAL_MAXAREA@{GOAL\_\-MAXAREA}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define GOAL\_\-MAXAREA~10000}\label{imageprocessing_8h_0359ad4c6db10d9f31b1909ce2a4add8}




Definition at line 11 of file imageprocessing.h.

Referenced by find\_\-color\_\-entities().\index{imageprocessing.h@{imageprocessing.h}!GOAL_MINAREA@{GOAL\_\-MINAREA}}
\index{GOAL_MINAREA@{GOAL\_\-MINAREA}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define GOAL\_\-MINAREA~400}\label{imageprocessing_8h_1d9c80360d57642ca12906f62de23643}




Definition at line 10 of file imageprocessing.h.\index{imageprocessing.h@{imageprocessing.h}!RGB_BLUE@{RGB\_\-BLUE}}
\index{RGB_BLUE@{RGB\_\-BLUE}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define RGB\_\-BLUE~3}\label{imageprocessing_8h_0eff802f1ca228046476209dc01c76ad}




Definition at line 15 of file imageprocessing.h.

Referenced by find\_\-color\_\-entities(), get\_\-component(), and My\-App::On\-Run().\index{imageprocessing.h@{imageprocessing.h}!RGB_GREEN@{RGB\_\-GREEN}}
\index{RGB_GREEN@{RGB\_\-GREEN}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define RGB\_\-GREEN~2}\label{imageprocessing_8h_b6c97468034c02fe204fd37036d9be15}




Definition at line 14 of file imageprocessing.h.

Referenced by find\_\-color\_\-entities(), get\_\-component(), and My\-App::On\-Run().\index{imageprocessing.h@{imageprocessing.h}!RGB_RED@{RGB\_\-RED}}
\index{RGB_RED@{RGB\_\-RED}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define RGB\_\-RED~1}\label{imageprocessing_8h_a039288455af8a3812a35aa1e7b903e4}




Definition at line 13 of file imageprocessing.h.

Referenced by find\_\-color\_\-entities(), get\_\-component(), and My\-App::On\-Run().\index{imageprocessing.h@{imageprocessing.h}!ROBOT_MAXAREA@{ROBOT\_\-MAXAREA}}
\index{ROBOT_MAXAREA@{ROBOT\_\-MAXAREA}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ROBOT\_\-MAXAREA~400}\label{imageprocessing_8h_b2daf93dd6572f0c23ae3a5e7099373b}




Definition at line 7 of file imageprocessing.h.\index{imageprocessing.h@{imageprocessing.h}!ROBOT_MINAREA@{ROBOT\_\-MINAREA}}
\index{ROBOT_MINAREA@{ROBOT\_\-MINAREA}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ROBOT\_\-MINAREA~150}\label{imageprocessing_8h_70f39b0a5245774b97d39fbd7ef7e08f}




Definition at line 6 of file imageprocessing.h.\index{imageprocessing.h@{imageprocessing.h}!SUBJECT_MAXAREA@{SUBJECT\_\-MAXAREA}}
\index{SUBJECT_MAXAREA@{SUBJECT\_\-MAXAREA}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SUBJECT\_\-MAXAREA~10000}\label{imageprocessing_8h_4412be9ada7555728afb1eb14b57696d}




Definition at line 9 of file imageprocessing.h.

Referenced by find\_\-color\_\-entities().\index{imageprocessing.h@{imageprocessing.h}!SUBJECT_MINAREA@{SUBJECT\_\-MINAREA}}
\index{SUBJECT_MINAREA@{SUBJECT\_\-MINAREA}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define SUBJECT\_\-MINAREA~50}\label{imageprocessing_8h_58c33ea5f007d64b1c369df3ae39b928}




Definition at line 8 of file imageprocessing.h.

Referenced by find\_\-color\_\-entities().

\subsection{Typedef Documentation}
\index{imageprocessing.h@{imageprocessing.h}!ENTITYLIST@{ENTITYLIST}}
\index{ENTITYLIST@{ENTITYLIST}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef std::list$<$class {\bf Entity}$>$ {\bf ENTITYLIST}}\label{imageprocessing_8h_2ea13ea66c0f1f89c7fdfc482a12b369}




Definition at line 22 of file imageprocessing.h.\index{imageprocessing.h@{imageprocessing.h}!ENTITYLIST_ITER@{ENTITYLIST\_\-ITER}}
\index{ENTITYLIST_ITER@{ENTITYLIST\_\-ITER}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef std::list$<$class {\bf Entity}$>$::iterator {\bf ENTITYLIST\_\-ITER}}\label{imageprocessing_8h_5282d2c8b384442d97a810f14e29671f}




Definition at line 23 of file imageprocessing.h.

\subsection{Function Documentation}
\index{imageprocessing.h@{imageprocessing.h}!find_color_entities@{find\_\-color\_\-entities}}
\index{find_color_entities@{find\_\-color\_\-entities}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Image$\ast$ find\_\-color\_\-entities (Image $\ast$ {\em inputimage}, int {\em color}, {\bf ENTITYLIST} $\ast$ {\em entitylist})}\label{imageprocessing_8h_fb68437199db50b58b4a9fb41d4d4044}




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::set\-Color(), Entity::set\-Type(), Entity::set\-X(), Entity::set\-Y(), Entity::SUBJECT, SUBJECT\_\-MAXAREA, SUBJECT\_\-MINAREA, threshold\_\-blue, threshold\_\-green, and threshold\_\-red.

Referenced by My\-App::On\-Run().\index{imageprocessing.h@{imageprocessing.h}!find_labeled_entity@{find\_\-labeled\_\-entity}}
\index{find_labeled_entity@{find\_\-labeled\_\-entity}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool find\_\-labeled\_\-entity (Image $\ast$ {\em input\-Image}, int \& {\em row}, int \& {\em col}, int \& {\em label})}\label{imageprocessing_8h_2c53b0e7270c077a2e92ca4235585ea8}




Definition at line 292 of file imageprocessing.cpp.

Referenced by find\_\-color\_\-entities().\index{imageprocessing.h@{imageprocessing.h}!get_component@{get\_\-component}}
\index{get_component@{get\_\-component}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Image$\ast$ get\_\-component (Image $\ast$ {\em cvip\-Image}, int {\em color})}\label{imageprocessing_8h_2999d16a97027cd02b1a4531cd1c418e}




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().\index{imageprocessing.h@{imageprocessing.h}!get_first_non_null_point@{get\_\-first\_\-non\_\-null\_\-point}}
\index{get_first_non_null_point@{get\_\-first\_\-non\_\-null\_\-point}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool get\_\-first\_\-non\_\-null\_\-point (Image $\ast$ {\em input\-Image}, int $\ast$ {\em row}, int $\ast$ {\em column})}\label{imageprocessing_8h_fd56baf1c5cef80f644f9d5811f8a938}




Definition at line 263 of file imageprocessing.cpp.

Referenced by find\_\-color\_\-entities().\index{imageprocessing.h@{imageprocessing.h}!init_imageprocessing@{init\_\-imageprocessing}}
\index{init_imageprocessing@{init\_\-imageprocessing}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int init\_\-imageprocessing ()}\label{imageprocessing_8h_afebd57def475a29b135949411bfbf1a}




Definition at line 11 of file imageprocessing.cpp.

References threshold\_\-blue, threshold\_\-green, and threshold\_\-red.

Referenced by My\-App::On\-Run().\index{imageprocessing.h@{imageprocessing.h}!print_entities@{print\_\-entities}}
\index{print_entities@{print\_\-entities}!imageprocessing.h@{imageprocessing.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void print\_\-entities ({\bf ENTITYLIST} $\ast$ {\em entitylist})}\label{imageprocessing_8h_3dac45c92e566296698d6aa696ac3ee2}




Definition at line 241 of file minimal.cpp.

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

Referenced by My\-App::On\-Run().