\section{Dijkstra\-Vectors Class Reference}
\label{class_dijkstra_vectors}\index{DijkstraVectors@{DijkstraVectors}}
Dijkstra\-Vectors distance transform class.  


{\tt \#include $<$Dijkstra\-Vectors.h$>$}

Inheritance diagram for Dijkstra\-Vectors::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_dijkstra_vectors}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Dijkstra\-Vectors} (const int {\bf x\-Size}, const int {\bf y\-Size}, const bool unload=true)
\begin{CompactList}\small\item\em construct a distance transform object for an image of size (x\-Size,y\-Size). \item\end{CompactList}\item 
void {\bf do\-Transform} (const unsigned char $\ast$const I)\label{class_dijkstra_vectors_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 
\begin{CompactList}\small\item\em return the \char`\"{}parent\char`\"{} (border point) associated with this point \item\end{CompactList}\item 
bool {\bf get\-P} (const int x, const int y, int \&px, int \&py, const int which) const \label{class_dijkstra_vectors_a29af28d2c3449d006726e6ca38201fb}

\end{CompactItemize}
\subsection*{Private Member Functions}
\begin{CompactItemize}
\item 
void {\bf check} (double $\ast$d, const int center, const int X, const int Y, set$<$ {\bf Set\-Element} $\ast$, {\bf lt\-Set\-Element} $>$ \&s)\label{class_dijkstra_vectors_bfd002b63c1f7250fe0818b03d4b7087}

\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
vector$<$ {\bf Set\-Element} $\ast$ $>$ $\ast$ {\bf p}
\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct {\bf lt\-Set\-Element}
\begin{CompactList}\small\item\em strict weak ordering on Set\-Element's. \item\end{CompactList}\item 
class {\bf Set\-Element}
\begin{CompactList}\small\item\em Elements of a set class. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Dijkstra\-Vectors distance transform class. 



\subsection{Constructor \& Destructor Documentation}
\index{DijkstraVectors@{Dijkstra\-Vectors}!DijkstraVectors@{DijkstraVectors}}
\index{DijkstraVectors@{DijkstraVectors}!DijkstraVectors@{Dijkstra\-Vectors}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Dijkstra\-Vectors::Dijkstra\-Vectors (const int {\em x\-Size}, const int {\em y\-Size}, const bool {\em unload} = {\tt true})}\label{class_dijkstra_vectors_51779d15a52b5740401abd1e7fff9b90}


construct a distance transform object for an image of size (x\-Size,y\-Size). 

if 'unload' is true, transforms that use ratios of integers should convert their integer results to the actual double values (of the ratios). 

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


return the \char`\"{}parent\char`\"{} (border point) associated with this point 

\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})}.

\subsection{Member Data Documentation}
\index{DijkstraVectors@{Dijkstra\-Vectors}!p@{p}}
\index{p@{p}!DijkstraVectors@{Dijkstra\-Vectors}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}vector$<${\bf Set\-Element}$\ast$$>$$\ast$ {\bf Dijkstra\-Vectors::p}\hspace{0.3cm}{\tt  [private]}}\label{class_dijkstra_vectors_83878c91171338902e0fe0fb97a8c47a}


stores vectors of parent locations (border points) \& the corresponding distance assignments. used as a 2d array. 

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