\section{Sadie\_\-Geometry.c File Reference}
\label{Sadie__Geometry_8c}\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
{\tt \#include $<$tcl.h$>$}\par
{\tt \#include $<$tk.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}sadie.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf Sadie\_\-Geometry\_\-Avg\-Sub\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Win\-Sub\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Scale\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Rotate\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Mirror\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Cont\-Pts\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Geom\-Warp\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-HMosaic\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-VMosaic\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Gen\-Mosaic\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Insert\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Sadie\_\-Geometry\_\-Init} (Tcl\_\-Interp $\ast$interp)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
short {\bf nlev}
\item 
short {\bf csize}
\item 
double {\bf weight}
\item 
double $\ast$ {\bf count}
\item 
{\bf PIXEL} {\bf gain}
\item 
{\bf PIXEL} {\bf bias}
\item 
{\bf PIXEL} {\bf gmin}
\item 
{\bf PIXEL} {\bf gmax}
\item 
{\bf PIXEL} {\bf thresh}
\item 
{\bf PIXEL} {\bf gbrk} [2][4]
\item 
{\bf PIXEL} $\ast$ {\bf table}
\item 
double {\bf xpolyterms} [6] = \{0.0, 1.0, 0.0, 0.0, 0.0, 0.0\}
\item 
double {\bf ypolyterms} [6] = \{0.0, 0.0, 1.0, 0.0, 0.0, 0.0\}
\item 
int {\bf numpolyterms} = 3
\end{CompactItemize}


\subsection{Function Documentation}
\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_AvgSubCmd@{Sadie\_\-Geometry\_\-AvgSubCmd}}
\index{Sadie_Geometry_AvgSubCmd@{Sadie\_\-Geometry\_\-AvgSubCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Avg\-Sub\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a15}




Definition at line 67 of file Sadie\_\-Geometry.c.

References CHECKIMG, RESAMPL, SLEN, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_ContPtsCmd@{Sadie\_\-Geometry\_\-ContPtsCmd}}
\index{Sadie_Geometry_ContPtsCmd@{Sadie\_\-Geometry\_\-ContPtsCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Cont\-Pts\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a20}




Definition at line 615 of file Sadie\_\-Geometry.c.

References GEOMCOEF, numpolyterms, xpolyterms, and ypolyterms.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_GenMosaicCmd@{Sadie\_\-Geometry\_\-GenMosaicCmd}}
\index{Sadie_Geometry_GenMosaicCmd@{Sadie\_\-Geometry\_\-GenMosaicCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Gen\-Mosaic\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a24}




Definition at line 1036 of file Sadie\_\-Geometry.c.

References CHECKIMG, MOSAIC, SLEN, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_GeomWarpCmd@{Sadie\_\-Geometry\_\-GeomWarpCmd}}
\index{Sadie_Geometry_GeomWarpCmd@{Sadie\_\-Geometry\_\-GeomWarpCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Geom\-Warp\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a21}




Definition at line 713 of file Sadie\_\-Geometry.c.

References CHECKIMG, GEOMWARP, IMAGE::nbnd, numpolyterms, SLEN, IMAGE::text, xpolyterms, and ypolyterms.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_HMosaicCmd@{Sadie\_\-Geometry\_\-HMosaicCmd}}
\index{Sadie_Geometry_HMosaicCmd@{Sadie\_\-Geometry\_\-HMosaicCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-HMosaic\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a22}




Definition at line 825 of file Sadie\_\-Geometry.c.

References CHECKIMG, HMOSAIC, SLEN, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_Init@{Sadie\_\-Geometry\_\-Init}}
\index{Sadie_Geometry_Init@{Sadie\_\-Geometry\_\-Init}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Init (Tcl\_\-Interp $\ast$ {\em interp})}\label{Sadie__Geometry_8c_a26}




Definition at line 1285 of file Sadie\_\-Geometry.c.

References Sadie\_\-Geometry\_\-Avg\-Sub\-Cmd, Sadie\_\-Geometry\_\-Cont\-Pts\-Cmd, Sadie\_\-Geometry\_\-Gen\-Mosaic\-Cmd, Sadie\_\-Geometry\_\-Geom\-Warp\-Cmd, Sadie\_\-Geometry\_\-HMosaic\-Cmd, Sadie\_\-Geometry\_\-Insert\-Cmd, Sadie\_\-Geometry\_\-Mirror\-Cmd, Sadie\_\-Geometry\_\-Rotate\-Cmd, Sadie\_\-Geometry\_\-Scale\-Cmd, Sadie\_\-Geometry\_\-VMosaic\-Cmd, and Sadie\_\-Geometry\_\-Win\-Sub\-Cmd.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_InsertCmd@{Sadie\_\-Geometry\_\-InsertCmd}}
\index{Sadie_Geometry_InsertCmd@{Sadie\_\-Geometry\_\-InsertCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Insert\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a25}




Definition at line 1187 of file Sadie\_\-Geometry.c.

References CHECKIMG, INSERT, SLEN, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_MirrorCmd@{Sadie\_\-Geometry\_\-MirrorCmd}}
\index{Sadie_Geometry_MirrorCmd@{Sadie\_\-Geometry\_\-MirrorCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Mirror\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a19}




Definition at line 530 of file Sadie\_\-Geometry.c.

References CHECKIMG, SLEN, IMAGE::text, and TRNSFORM.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_RotateCmd@{Sadie\_\-Geometry\_\-RotateCmd}}
\index{Sadie_Geometry_RotateCmd@{Sadie\_\-Geometry\_\-RotateCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Rotate\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a18}




Definition at line 429 of file Sadie\_\-Geometry.c.

References CHECKIMG, ROTATE, SLEN, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_ScaleCmd@{Sadie\_\-Geometry\_\-ScaleCmd}}
\index{Sadie_Geometry_ScaleCmd@{Sadie\_\-Geometry\_\-ScaleCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Scale\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a17}




Definition at line 329 of file Sadie\_\-Geometry.c.

References CHECKIMG, EXPAND, SLEN, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_VMosaicCmd@{Sadie\_\-Geometry\_\-VMosaicCmd}}
\index{Sadie_Geometry_VMosaicCmd@{Sadie\_\-Geometry\_\-VMosaicCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-VMosaic\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a23}




Definition at line 931 of file Sadie\_\-Geometry.c.

References CHECKIMG, SLEN, IMAGE::text, and VMOSAIC.

Referenced by Sadie\_\-Geometry\_\-Init.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!Sadie_Geometry_WinSubCmd@{Sadie\_\-Geometry\_\-WinSubCmd}}
\index{Sadie_Geometry_WinSubCmd@{Sadie\_\-Geometry\_\-WinSubCmd}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Sadie\_\-Geometry\_\-Win\-Sub\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{Sadie__Geometry_8c_a16}




Definition at line 181 of file Sadie\_\-Geometry.c.

References CHECKIMG, SLEN, SUBSAMPL, and IMAGE::text.

Referenced by Sadie\_\-Geometry\_\-Init.

\subsection{Variable Documentation}
\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!bias@{bias}}
\index{bias@{bias}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} bias}\label{Sadie__Geometry_8c_a6}




Definition at line 34 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!count@{count}}
\index{count@{count}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double$\ast$ count}\label{Sadie__Geometry_8c_a4}




Definition at line 32 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!csize@{csize}}
\index{csize@{csize}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short csize}\label{Sadie__Geometry_8c_a2}




Definition at line 30 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!gain@{gain}}
\index{gain@{gain}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gain}\label{Sadie__Geometry_8c_a5}




Definition at line 33 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!gbrk@{gbrk}}
\index{gbrk@{gbrk}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gbrk[2][4]}\label{Sadie__Geometry_8c_a10}




Definition at line 38 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!gmax@{gmax}}
\index{gmax@{gmax}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gmax}\label{Sadie__Geometry_8c_a8}




Definition at line 36 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!gmin@{gmin}}
\index{gmin@{gmin}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} gmin}\label{Sadie__Geometry_8c_a7}




Definition at line 35 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!nlev@{nlev}}
\index{nlev@{nlev}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short nlev}\label{Sadie__Geometry_8c_a1}




Definition at line 29 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!numpolyterms@{numpolyterms}}
\index{numpolyterms@{numpolyterms}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int numpolyterms = 3}\label{Sadie__Geometry_8c_a14}




Definition at line 47 of file Sadie\_\-Geometry.c.

Referenced by Sadie\_\-Geometry\_\-Cont\-Pts\-Cmd, and Sadie\_\-Geometry\_\-Geom\-Warp\-Cmd.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!table@{table}}
\index{table@{table}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL}$\ast$ table}\label{Sadie__Geometry_8c_a11}




Definition at line 39 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!thresh@{thresh}}
\index{thresh@{thresh}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf PIXEL} thresh}\label{Sadie__Geometry_8c_a9}




Definition at line 37 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!weight@{weight}}
\index{weight@{weight}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double weight}\label{Sadie__Geometry_8c_a3}




Definition at line 31 of file Sadie\_\-Geometry.c.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!xpolyterms@{xpolyterms}}
\index{xpolyterms@{xpolyterms}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double xpolyterms[6] = \{0.0, 1.0, 0.0, 0.0, 0.0, 0.0\}}\label{Sadie__Geometry_8c_a12}




Definition at line 45 of file Sadie\_\-Geometry.c.

Referenced by Sadie\_\-Geometry\_\-Cont\-Pts\-Cmd, and Sadie\_\-Geometry\_\-Geom\-Warp\-Cmd.\index{Sadie_Geometry.c@{Sadie\_\-Geometry.c}!ypolyterms@{ypolyterms}}
\index{ypolyterms@{ypolyterms}!Sadie_Geometry.c@{Sadie\_\-Geometry.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double ypolyterms[6] = \{0.0, 0.0, 1.0, 0.0, 0.0, 0.0\}}\label{Sadie__Geometry_8c_a13}




Definition at line 46 of file Sadie\_\-Geometry.c.

Referenced by Sadie\_\-Geometry\_\-Cont\-Pts\-Cmd, and Sadie\_\-Geometry\_\-Geom\-Warp\-Cmd.