\section{stretch.c File Reference}
\label{stretch_8c}\index{stretch.c@{stretch.c}}
{\tt \#include \char`\"{}sadie.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf STRETCH} ({\bf IMAGE} $\ast$in, short($\ast$tf)({\bf IMAGE} $\ast$, {\bf IMAGE} $\ast$$\ast$), {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFINVERT} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFLINEAR} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFLOG} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFPLT} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFQUANT} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFROOT} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFSAT} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFSCALE} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFSQUARE} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFTABLE} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\item 
short {\bf TFTHRESH} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
{\bf PIXEL} {\bf gmax}
\item 
{\bf PIXEL} {\bf bias}
\item 
{\bf PIXEL} {\bf gain}
\item 
{\bf PIXEL} {\bf gbrk} [2][4]
\item 
short {\bf nlev}
\item 
{\bf PIXEL} {\bf gmin}
\item 
{\bf PIXEL} $\ast$ {\bf table}
\item 
{\bf PIXEL} {\bf thresh}
\end{CompactItemize}


\subsection{Function Documentation}
\index{stretch.c@{stretch.c}!STRETCH@{STRETCH}}
\index{STRETCH@{STRETCH}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void STRETCH ({\bf IMAGE} $\ast$ {\em in}, short($\ast$ {\em tf})({\bf IMAGE} $\ast$, {\bf IMAGE} $\ast$$\ast$), {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a8}




Definition at line 22 of file stretch.c.

References bias, CHECKIMG, gain, gbrk, GETMEM, IMAGE::gmax, gmax, IMAGE::gmin, gmin, MESSAGE, IMAGE::nbnd, nlev, IMAGE::nlin, IMAGE::npix, out, SLEN, T\_\-EXIT, T\_\-STRETCH, table, IMAGE::text, TFINVERT, TFLINEAR, TFLOG, TFPLT, TFQUANT, TFROOT, TFSAT, TFSCALE, TFSQUARE, TFTABLE, TFTHRESH, thresh, and TIMING.

Referenced by COLOR\_\-OVERLAY, Sadie\_\-Contrast\_\-Linear\-Stretch\-Cmd, Sadie\_\-Contrast\_\-Log\-Stretch\-Cmd, Sadie\_\-Contrast\_\-PWLStretch\-Cmd, Sadie\_\-Contrast\_\-Qnt\-Stretch\-Cmd, Sadie\_\-Contrast\_\-Root\-Stretch\-Cmd, Sadie\_\-Contrast\_\-Sat\-Stretch\-Cmd, Sadie\_\-Contrast\_\-Sqr\-Stretch\-Cmd, Sadie\_\-Contrast\_\-Tbl\-Stretch\-Cmd, Sadie\_\-Contrast\_\-Thresh\-Stretch\-Cmd, SETMEAN, and TREERING\_\-DETECT.\index{stretch.c@{stretch.c}!TFINVERT@{TFINVERT}}
\index{TFINVERT@{TFINVERT}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFINVERT ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a9}




Definition at line 133 of file stretch.c.

References IMAGE::data, IMAGE::gmax, gmax, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, out, T\_\-EXIT, T\_\-TFINVERT, and TIMING.\index{stretch.c@{stretch.c}!TFLINEAR@{TFLINEAR}}
\index{TFLINEAR@{TFLINEAR}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFLINEAR ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a10}




Definition at line 167 of file stretch.c.

References bias, IMAGE::data, gain, IMAGE::gmax, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, out, T\_\-EXIT, T\_\-TFLINEAR, and TIMING.\index{stretch.c@{stretch.c}!TFLOG@{TFLOG}}
\index{TFLOG@{TFLOG}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFLOG ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a11}




Definition at line 204 of file stretch.c.

References IMAGE::data, gbrk, IMAGE::gmax, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, out, T\_\-EXIT, T\_\-TFLOG, and TIMING.\index{stretch.c@{stretch.c}!TFPLT@{TFPLT}}
\index{TFPLT@{TFPLT}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFPLT ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a12}




Definition at line 239 of file stretch.c.

References IMAGE::data, gbrk, IMAGE::gmax, IMAGE::gmin, max, min, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFPLT, and TIMING.\index{stretch.c@{stretch.c}!TFQUANT@{TFQUANT}}
\index{TFQUANT@{TFQUANT}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFQUANT ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a13}




Definition at line 298 of file stretch.c.

References IMAGE::data, gmax, gmin, max, min, IMAGE::nbnd, nlev, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFQUANT, and TIMING.\index{stretch.c@{stretch.c}!TFROOT@{TFROOT}}
\index{TFROOT@{TFROOT}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFROOT ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a14}




Definition at line 332 of file stretch.c.

References IMAGE::data, IMAGE::gmax, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFROOT, and TIMING.\index{stretch.c@{stretch.c}!TFSAT@{TFSAT}}
\index{TFSAT@{TFSAT}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFSAT ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a15}




Definition at line 367 of file stretch.c.

References IMAGE::data, gmax, gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFSAT, and TIMING.\index{stretch.c@{stretch.c}!TFSCALE@{TFSCALE}}
\index{TFSCALE@{TFSCALE}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFSCALE ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a16}




Definition at line 404 of file stretch.c.

References IMAGE::data, gmax, IMAGE::gmax, gmin, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, RANGE, T\_\-EXIT, T\_\-TFSCALE, and TIMING.\index{stretch.c@{stretch.c}!TFSQUARE@{TFSQUARE}}
\index{TFSQUARE@{TFSQUARE}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFSQUARE ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a17}




Definition at line 443 of file stretch.c.

References IMAGE::data, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFSQUARE, and TIMING.\index{stretch.c@{stretch.c}!TFTABLE@{TFTABLE}}
\index{TFTABLE@{TFTABLE}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFTABLE ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a18}




Definition at line 476 of file stretch.c.

References IMAGE::data, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFTABLE, table, and TIMING.\index{stretch.c@{stretch.c}!TFTHRESH@{TFTHRESH}}
\index{TFTHRESH@{TFTHRESH}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short TFTHRESH ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{stretch_8c_a19}




Definition at line 508 of file stretch.c.

References IMAGE::data, IMAGE::gmax, IMAGE::gmin, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, T\_\-EXIT, T\_\-TFTHRESH, thresh, and TIMING.

\subsection{Variable Documentation}
\index{stretch.c@{stretch.c}!bias@{bias}}
\index{bias@{bias}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} bias}\label{stretch_8c_a1}




Definition at line 4 of file stretch.c.

Referenced by STRETCH, and TFLINEAR.\index{stretch.c@{stretch.c}!gain@{gain}}
\index{gain@{gain}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gain}\label{stretch_8c_a2}




Definition at line 5 of file stretch.c.

Referenced by STRETCH, and TFLINEAR.\index{stretch.c@{stretch.c}!gbrk@{gbrk}}
\index{gbrk@{gbrk}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gbrk[2][4]}\label{stretch_8c_a3}




Definition at line 6 of file stretch.c.

Referenced by STRETCH, TFLOG, and TFPLT.\index{stretch.c@{stretch.c}!gmax@{gmax}}
\index{gmax@{gmax}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gmax}\label{stretch_8c_a0}




Definition at line 3 of file stretch.c.

Referenced by STRETCH, TFINVERT, TFQUANT, TFSAT, and TFSCALE.\index{stretch.c@{stretch.c}!gmin@{gmin}}
\index{gmin@{gmin}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gmin}\label{stretch_8c_a5}




Definition at line 8 of file stretch.c.

Referenced by STRETCH, TFQUANT, TFSAT, and TFSCALE.\index{stretch.c@{stretch.c}!nlev@{nlev}}
\index{nlev@{nlev}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short nlev}\label{stretch_8c_a4}




Definition at line 7 of file stretch.c.

Referenced by STRETCH, and TFQUANT.\index{stretch.c@{stretch.c}!table@{table}}
\index{table@{table}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL}$\ast$ table}\label{stretch_8c_a6}




Definition at line 9 of file stretch.c.

Referenced by STRETCH, and TFTABLE.\index{stretch.c@{stretch.c}!thresh@{thresh}}
\index{thresh@{thresh}!stretch.c@{stretch.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} thresh}\label{stretch_8c_a7}




Definition at line 10 of file stretch.c.

Referenced by STRETCH, and TFTHRESH.