\section{link\_\-doublethresh.c File Reference}
\label{link__doublethresh_8c}\index{link_doublethresh.c@{link\_\-doublethresh.c}}
{\tt \#include \char`\"{}sadie.h\char`\"{}}\par
{\tt \#include \char`\"{}proto.h\char`\"{}}\par
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct {\bf SEGMENT\_\-DATA}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf UP}\ 1
\item 
\#define {\bf DOWN}\ 2
\item 
\#define {\bf LEFT}\ 3
\item 
\#define {\bf RIGHT}\ 4
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf LINK\_\-DOUBLETHRESH} ({\bf IMAGE} $\ast$thresh1, {\bf IMAGE} $\ast$thresh2, int maxlinkdist, {\bf IMAGE} $\ast$$\ast$fillgaps, {\bf IMAGE} $\ast$$\ast${\bf out})
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int $\ast$$\ast$ {\bf x\_\-array\_\-buffer}
\item 
int {\bf point}
\item 
int {\bf count\_\-point}
\end{CompactItemize}


\subsection{Define Documentation}
\index{link_doublethresh.c@{link\_\-doublethresh.c}!DOWN@{DOWN}}
\index{DOWN@{DOWN}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DOWN\ 2}\label{link__doublethresh_8c_a1}




Definition at line 7 of file link\_\-doublethresh.c.\index{link_doublethresh.c@{link\_\-doublethresh.c}!LEFT@{LEFT}}
\index{LEFT@{LEFT}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LEFT\ 3}\label{link__doublethresh_8c_a2}




Definition at line 8 of file link\_\-doublethresh.c.\index{link_doublethresh.c@{link\_\-doublethresh.c}!RIGHT@{RIGHT}}
\index{RIGHT@{RIGHT}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define RIGHT\ 4}\label{link__doublethresh_8c_a3}




Definition at line 9 of file link\_\-doublethresh.c.\index{link_doublethresh.c@{link\_\-doublethresh.c}!UP@{UP}}
\index{UP@{UP}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define UP\ 1}\label{link__doublethresh_8c_a0}




Definition at line 6 of file link\_\-doublethresh.c.

\subsection{Function Documentation}
\index{link_doublethresh.c@{link\_\-doublethresh.c}!LINK_DOUBLETHRESH@{LINK\_\-DOUBLETHRESH}}
\index{LINK_DOUBLETHRESH@{LINK\_\-DOUBLETHRESH}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void LINK\_\-DOUBLETHRESH ({\bf IMAGE} $\ast$ {\em thresh1}, {\bf IMAGE} $\ast$ {\em thresh2}, int {\em maxlinkdist}, {\bf IMAGE} $\ast$$\ast$ {\em fillgaps}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{link__doublethresh_8c_a7}




Definition at line 40 of file link\_\-doublethresh.c.

References SEGMENT\_\-DATA::bottomlinkdone, SEGMENT\_\-DATA::bottomx, SEGMENT\_\-DATA::bottomy, brshnm, CHECKIMG, CMPLBL8, count\_\-point, IMAGE::data, GETMEM, IMAGE::gmax, IMAGE::gmin, malloc, MESSAGE, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, out, point, quicksort, RANGE, RELIMG, rnd, SLEN, IMAGE::text, SEGMENT\_\-DATA::toplinkdone, SEGMENT\_\-DATA::topx, SEGMENT\_\-DATA::topy, and x\_\-array\_\-buffer.

\subsection{Variable Documentation}
\index{link_doublethresh.c@{link\_\-doublethresh.c}!count_point@{count\_\-point}}
\index{count_point@{count\_\-point}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int count\_\-point}\label{link__doublethresh_8c_a6}




Definition at line 15 of file link\_\-doublethresh.c.

Referenced by LINK\_\-DOUBLETHRESH.\index{link_doublethresh.c@{link\_\-doublethresh.c}!point@{point}}
\index{point@{point}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int point}\label{link__doublethresh_8c_a5}




Definition at line 14 of file link\_\-doublethresh.c.

Referenced by LINK\_\-DOUBLETHRESH.\index{link_doublethresh.c@{link\_\-doublethresh.c}!x_array_buffer@{x\_\-array\_\-buffer}}
\index{x_array_buffer@{x\_\-array\_\-buffer}!link_doublethresh.c@{link\_\-doublethresh.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int$\ast$$\ast$ x\_\-array\_\-buffer}\label{link__doublethresh_8c_a4}




Definition at line 13 of file link\_\-doublethresh.c.

Referenced by LINK\_\-DOUBLETHRESH.