\section{Simple Class Reference}
\label{class_simple}\index{Simple@{Simple}}
Simple distance transform algorithm.  


{\tt \#include $<$Simple.h$>$}

Inheritance diagram for Simple::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_simple}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Simple} (const int {\bf x\-Size}, const int {\bf y\-Size}, const bool unload=true)\label{class_simple_771170c1345ee1e4bab4f06370e871c4}

\item 
void {\bf do\-Transform} (const unsigned char $\ast$const I)\label{class_simple_e4f491b87b80e7a1a433d917af000c78}

\begin{CompactList}\small\item\em calculate the distance transform \item\end{CompactList}\item 
virtual bool {\bf get\-P} (const int x, const int y, int \&px, int \&py) const 
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
P $\ast$ {\bf p}\label{class_simple_83878c91171338902e0fe0fb97a8c47a}

\end{CompactItemize}


\subsection{Detailed Description}
Simple distance transform algorithm. 

The Simple distance transform is simply an exhaustive search. It compares each non border point to its distance from each border point and determines the minimum distance (from the non border point to the border points). Border points are not stored in any auxillary data structure so they must be repeatedly search for in the input binary image. Hence this algorithm is not very efficient. 



\subsection{Member Function Documentation}
\index{Simple@{Simple}!getP@{getP}}
\index{getP@{getP}!Simple@{Simple}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool Simple::get\-P (const int {\em x}, const int {\em y}, int \& {\em px}, int \& {\em py}) const\hspace{0.3cm}{\tt  [virtual]}}\label{class_simple_96812fce6c340f8e08e9326a44f8e067}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em x}]is the x location \item[{\em y}]is the y location \item[{\em px}]is the parent's x location to be returned \item[{\em py}]is the parent's y location to be returned \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if the parent is know; otherwise false. \end{Desc}


Reimplemented from {\bf Distance\-Transform} {\rm (p.\,\pageref{class_distance_transform_96812fce6c340f8e08e9326a44f8e067})}.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
{\bf Simple.h}\item 
{\bf Simple.cpp}\end{CompactItemize}
