\section{imageprocessing.cpp File Reference}
\label{imageprocessing_8cpp}\index{imageprocessing.cpp@{imageprocessing.cpp}}
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include \char`\"{}imageprocessing.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf init\_\-imageprocessing} ()
\item 
Image $\ast$ {\bf get\_\-component} (Image $\ast$input\-Image, int color)
\item 
Image $\ast$ {\bf find\_\-color\_\-entities} (Image $\ast$inputimage, int color, {\bf ENTITYLIST} $\ast$entitylist)
\item 
bool {\bf get\_\-first\_\-non\_\-null\_\-point} (Image $\ast$input\-Image, int $\ast$row, int $\ast$column)
\item 
bool {\bf find\_\-labeled\_\-entity} (Image $\ast$input\-Image, int \&row, int \&col, int \&label)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int {\bf threshold\_\-red} = 0
\item 
int {\bf threshold\_\-green} = 0
\item 
int {\bf threshold\_\-blue} = 0
\end{CompactItemize}


\subsection{Function Documentation}
\index{imageprocessing.cpp@{imageprocessing.cpp}!find_color_entities@{find\_\-color\_\-entities}}
\index{find_color_entities@{find\_\-color\_\-entities}!imageprocessing.cpp@{imageprocessing.cpp}}
\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_8cpp_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.cpp@{imageprocessing.cpp}!find_labeled_entity@{find\_\-labeled\_\-entity}}
\index{find_labeled_entity@{find\_\-labeled\_\-entity}!imageprocessing.cpp@{imageprocessing.cpp}}
\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_8cpp_2c53b0e7270c077a2e92ca4235585ea8}




Definition at line 292 of file imageprocessing.cpp.

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




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.cpp@{imageprocessing.cpp}!get_first_non_null_point@{get\_\-first\_\-non\_\-null\_\-point}}
\index{get_first_non_null_point@{get\_\-first\_\-non\_\-null\_\-point}!imageprocessing.cpp@{imageprocessing.cpp}}
\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_8cpp_fd56baf1c5cef80f644f9d5811f8a938}




Definition at line 263 of file imageprocessing.cpp.

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




Definition at line 11 of file imageprocessing.cpp.

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

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

\subsection{Variable Documentation}
\index{imageprocessing.cpp@{imageprocessing.cpp}!threshold_blue@{threshold\_\-blue}}
\index{threshold_blue@{threshold\_\-blue}!imageprocessing.cpp@{imageprocessing.cpp}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf threshold\_\-blue} = 0}\label{imageprocessing_8cpp_41e0bf79ed8476315cfadc59317d04b9}




Definition at line 8 of file imageprocessing.cpp.

Referenced by find\_\-color\_\-entities(), get\_\-component(), and init\_\-imageprocessing().\index{imageprocessing.cpp@{imageprocessing.cpp}!threshold_green@{threshold\_\-green}}
\index{threshold_green@{threshold\_\-green}!imageprocessing.cpp@{imageprocessing.cpp}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf threshold\_\-green} = 0}\label{imageprocessing_8cpp_225acd8ea466e8ae39303b7c3dda13ae}




Definition at line 7 of file imageprocessing.cpp.

Referenced by find\_\-color\_\-entities(), get\_\-component(), and init\_\-imageprocessing().\index{imageprocessing.cpp@{imageprocessing.cpp}!threshold_red@{threshold\_\-red}}
\index{threshold_red@{threshold\_\-red}!imageprocessing.cpp@{imageprocessing.cpp}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf threshold\_\-red} = 0}\label{imageprocessing_8cpp_c0af910c049c6ee9574be683d668265d}




Definition at line 6 of file imageprocessing.cpp.

Referenced by find\_\-color\_\-entities(), get\_\-component(), and init\_\-imageprocessing().