\section{Image\-Processor.h File Reference}
\label{ImageProcessor_8h}\index{ImageProcessor.h@{ImageProcessor.h}}
{\tt \#include \char`\"{}Image.h\char`\"{}}\par
{\tt \#include \char`\"{}Resource.h\char`\"{}}\par
{\tt \#include \char`\"{}CVIPtools\-Inc.h\char`\"{}}\par
{\tt \#include \char`\"{}List.h\char`\"{}}\par
{\tt \#include \char`\"{}Entity.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
class {\bf Image\-Processor}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf AFX\_\-IMAGEPROCESSOR\_\-H\_\-\_\-D1E52321\_\-0F55\_\-11D6\_\-BB61\_\-004096383186\_\-\_\-INCLUDED\_\-}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf log\_\-Image} (Image $\ast$cvipimage, char $\ast$description=\char`\"{}\char`\"{})
\begin{CompactList}\small\item\em mybriefdef log\_\-Image \item\end{CompactList}\item 
void {\bf view\_\-logged\_\-Image} (CImage $\ast$visimg, int number)
\item 
bool {\bf get\_\-first\_\-non\_\-null\_\-point} (Image $\ast$input\-Image, int $\ast$row, int $\ast$column)
\item 
bool {\bf get\_\-centroid\_\-off\_\-first\_\-object} (Image $\ast$input\-Image, int $\ast$center\_\-row, int $\ast$center\_\-col)
\item 
Image $\ast$ {\bf get\_\-component} (Image $\ast$cvip\-Image, int color)
\item 
Image $\ast$ {\bf Robot\_\-Position\_\-and\_\-Angle} (Image $\ast$cvip\-Image)
\item 
Image $\ast$ {\bf Object\_\-Position\_\-and\_\-Angle} (Image $\ast$input\-Image, int obj\_\-color, int $\ast$obj\_\-row, int $\ast$obj\_\-col, int $\ast$obj\_\-angle)
\item 
bool {\bf find\_\-labeled\_\-object} (Image $\ast$input\-Image, int \&row, int \&col, int \&label)
\item 
bool {\bf robot\_\-angle} (Image $\ast$input\-Image, int \&center\_\-row, int \&center\_\-col, int \&angle)
\item 
Image $\ast$ {\bf find\_\-color\_\-objects} (Image $\ast$inputimage, int color, List$<$ {\bf Entity} $>$ $\ast$objectlist)
\item 
void {\bf print\_\-entities} (List$<$ {\bf Entity} $>$ $\ast$objectlist)
\item 
void {\bf send\_\-entities} (List$<$ {\bf Entity} $>$ $\ast$objectlist)
\end{CompactItemize}


\subsection{Define Documentation}
\index{ImageProcessor.h@{Image\-Processor.h}!AFX_IMAGEPROCESSOR_H__D1E52321_0F55_11D6_BB61_004096383186__INCLUDED_@{AFX\_\-IMAGEPROCESSOR\_\-H\_\-\_\-D1E52321\_\-0F55\_\-11D6\_\-BB61\_\-004096383186\_\-\_\-INCLUDED\_\-}}
\index{AFX_IMAGEPROCESSOR_H__D1E52321_0F55_11D6_BB61_004096383186__INCLUDED_@{AFX\_\-IMAGEPROCESSOR\_\-H\_\-\_\-D1E52321\_\-0F55\_\-11D6\_\-BB61\_\-004096383186\_\-\_\-INCLUDED\_\-}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define AFX\_\-IMAGEPROCESSOR\_\-H\_\-\_\-D1E52321\_\-0F55\_\-11D6\_\-BB61\_\-004096383186\_\-\_\-INCLUDED\_\-}\label{ImageProcessor_8h_6483ddd71b4a21b74c2ad0a91d0a2338}




Definition at line 6 of file Image\-Processor.h.

\subsection{Function Documentation}
\index{ImageProcessor.h@{Image\-Processor.h}!find_color_objects@{find\_\-color\_\-objects}}
\index{find_color_objects@{find\_\-color\_\-objects}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Image$\ast$ find\_\-color\_\-objects (Image $\ast$ {\em inputimage}, int {\em color}, List$<$ {\bf Entity} $>$ $\ast$ {\em objectlist})}\label{ImageProcessor_8h_272104453559ad13abc5bbbf42c76e90}




Definition at line 398 of file Image\-Processor.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::set\-Angle(), Entity::set\-Color(), Entity::set\-Type(), Entity::set\-X(), Entity::set\-Y(), Entity::SUBJECT, SUBJECT\_\-MAXAREA, and SUBJECT\_\-MINAREA.

Referenced by Image\-Processor::My\-Algorithm().\index{ImageProcessor.h@{Image\-Processor.h}!find_labeled_object@{find\_\-labeled\_\-object}}
\index{find_labeled_object@{find\_\-labeled\_\-object}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool find\_\-labeled\_\-object (Image $\ast$ {\em input\-Image}, int \& {\em row}, int \& {\em col}, int \& {\em label})}\label{ImageProcessor_8h_397d65b8635d1caf46005baf5dcda782}




Definition at line 787 of file Image\-Processor.cpp.

Referenced by find\_\-color\_\-objects().\index{ImageProcessor.h@{Image\-Processor.h}!get_centroid_off_first_object@{get\_\-centroid\_\-off\_\-first\_\-object}}
\index{get_centroid_off_first_object@{get\_\-centroid\_\-off\_\-first\_\-object}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool get\_\-centroid\_\-off\_\-first\_\-object (Image $\ast$ {\em input\-Image}, int $\ast$ {\em center\_\-row}, int $\ast$ {\em center\_\-col})}\label{ImageProcessor_8h_c2e49232b0eb8a47bffd0d4541a32a65}




Definition at line 725 of file Image\-Processor.cpp.

References get\_\-first\_\-non\_\-null\_\-point().

Referenced by Object\_\-Position\_\-and\_\-Angle(), and robot\_\-angle().\index{ImageProcessor.h@{Image\-Processor.h}!get_component@{get\_\-component}}
\index{get_component@{get\_\-component}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Image$\ast$ get\_\-component (Image $\ast$ {\em cvip\-Image}, int {\em color})}\label{ImageProcessor_8h_2999d16a97027cd02b1a4531cd1c418e}




Definition at line 24 of file imageprocessing.cpp.

References log\_\-Image(), RGB\_\-BLUE, RGB\_\-GREEN, RGB\_\-RED, threshold\_\-blue, threshold\_\-green, and threshold\_\-red.\index{ImageProcessor.h@{Image\-Processor.h}!get_first_non_null_point@{get\_\-first\_\-non\_\-null\_\-point}}
\index{get_first_non_null_point@{get\_\-first\_\-non\_\-null\_\-point}!ImageProcessor.h@{Image\-Processor.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{ImageProcessor_8h_fd56baf1c5cef80f644f9d5811f8a938}




Definition at line 263 of file imageprocessing.cpp.\index{ImageProcessor.h@{Image\-Processor.h}!log_Image@{log\_\-Image}}
\index{log_Image@{log\_\-Image}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void log\_\-Image (Image $\ast$ {\em cvipimage}, char $\ast$ {\em description} = {\tt \char`\"{}\char`\"{}})}\label{ImageProcessor_8h_eb8b2c4b2a6d95c6a4bd5786171f3828}


mybriefdef log\_\-Image 

mylongdef regle4 Method documentation. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cvipimage}]The parameter. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}
\begin{Desc}
\item[See also:]{\bf view\_\-logged\_\-Image()}{\rm (p.\,\pageref{ImageProcessor_8cpp_1bd888a8b8676fa21471b059c0d1a557})} \end{Desc}


Definition at line 911 of file Image\-Processor.cpp.

References i\-Image\-Count, sz\-File\-Name, and sz\-Name\-Format.

Referenced by get\_\-component(), Image\-Processor::My\-Algorithm(), Object\_\-Position\_\-and\_\-Angle(), and robot\_\-angle().\index{ImageProcessor.h@{Image\-Processor.h}!Object_Position_and_Angle@{Object\_\-Position\_\-and\_\-Angle}}
\index{Object_Position_and_Angle@{Object\_\-Position\_\-and\_\-Angle}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Image$\ast$ Object\_\-Position\_\-and\_\-Angle (Image $\ast$ {\em input\-Image}, int {\em obj\_\-color}, int $\ast$ {\em obj\_\-row}, int $\ast$ {\em obj\_\-col}, int $\ast$ {\em obj\_\-angle})}\label{ImageProcessor_8h_52708bdb02e8ff1ec9939955614f5c89}




Definition at line 1036 of file Image\-Processor.cpp.

References get\_\-centroid\_\-off\_\-first\_\-object(), get\_\-component(), and log\_\-Image().

Referenced by Robot\_\-Position\_\-and\_\-Angle().\index{ImageProcessor.h@{Image\-Processor.h}!print_entities@{print\_\-entities}}
\index{print_entities@{print\_\-entities}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void print\_\-entities (List$<$ {\bf Entity} $>$ $\ast$ {\em objectlist})}\label{ImageProcessor_8h_a5ef5c6c757b1afa954384024060420d}




Definition at line 335 of file Image\-Processor.cpp.

References Entity::GOAL, Entity::ROBOT, and Entity::SUBJECT.\index{ImageProcessor.h@{Image\-Processor.h}!robot_angle@{robot\_\-angle}}
\index{robot_angle@{robot\_\-angle}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool robot\_\-angle (Image $\ast$ {\em input\-Image}, int \& {\em center\_\-row}, int \& {\em center\_\-col}, int \& {\em angle})}\label{ImageProcessor_8h_532a58c8a83d7a6ae53aae5960e9e982}




Definition at line 826 of file Image\-Processor.cpp.

References get\_\-centroid\_\-off\_\-first\_\-object(), and log\_\-Image().

Referenced by find\_\-color\_\-objects().\index{ImageProcessor.h@{Image\-Processor.h}!Robot_Position_and_Angle@{Robot\_\-Position\_\-and\_\-Angle}}
\index{Robot_Position_and_Angle@{Robot\_\-Position\_\-and\_\-Angle}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Image$\ast$ Robot\_\-Position\_\-and\_\-Angle (Image $\ast$ {\em cvip\-Image})}\label{ImageProcessor_8h_465fe3223b69747150c6b4f255f6f486}




Definition at line 1008 of file Image\-Processor.cpp.

References Object\_\-Position\_\-and\_\-Angle().\index{ImageProcessor.h@{Image\-Processor.h}!send_entities@{send\_\-entities}}
\index{send_entities@{send\_\-entities}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void send\_\-entities (List$<$ {\bf Entity} $>$ $\ast$ {\em objectlist})}\label{ImageProcessor_8h_eedee3b4314e9e691ae883867a94dc18}




Definition at line 360 of file Image\-Processor.cpp.

References Entity::GOAL, Entity::ROBOT, and Entity::SUBJECT.\index{ImageProcessor.h@{Image\-Processor.h}!view_logged_Image@{view\_\-logged\_\-Image}}
\index{view_logged_Image@{view\_\-logged\_\-Image}!ImageProcessor.h@{Image\-Processor.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void view\_\-logged\_\-Image (CImage $\ast$ {\em visimg}, int {\em number})}\label{ImageProcessor_8h_1bd888a8b8676fa21471b059c0d1a557}




Definition at line 952 of file Image\-Processor.cpp.

References sz\-File\-Name, and sz\-Name\-Format.