\chapter{ctsim - the Graphical User Interface}\label{ctsim}\index{ctsim}% 
\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
\setfooter{\thepage}{}{}{}{}{\thepage}%

\section{Overview}
\ctsim\ is the graphical shell for the CTSim project. It is
written using the wxLibrary for cross-platform compatibility with GTK,
Motif, and Microsoft Windows. It includes all of the functionality of
the command-line tool \ctsimtext\ as well as image processing and visualization features.

\ctsim\ can open projection files, image files, phantom definition files, and plotfiles.

\usage
ctsim [OPTIONS] [files to open...]

\section{Files Supported}
\subsection{Phantom}
Phantom files are supported. Besides loading phantom files from
the disk, the Herman and Shepp-Logan phantoms are built-in to CTSim.
Phantom files can be read and stored on the disk. However, a text
editor is required to create and edit these files.
 
\subsection{Image}
Image files are 2-dimensional files stored a 4-byte floating point values.
They are stored in little-endian format and \ctsim\ incorporates routines
to read and write files correctly on both big and little endian architextures.

Images files can be either real or complex valued. Typically, all images
are real except for images that have been processed by Fourier transforms.

\subsection{Projection}
Projection files are created from Phantom files during the projection process.
Numerous options are available for creation of the these files.

\subsection{Plot}
Plot files are created by CTSim during analysis of image files. They can be
read and stored on the disk. They are stored as ASCII files for easy
cross-platform support.

\section{Phantom Menus}

\subsection{Rasterize Dialog}
This creates an image file from a phantom. Technically, it converts
the phantom from a vector (infinite resolution) object into defined resolution
image. The parameters to set are:

x-size   Number of columns in image file
y-size   Number of rows in image file
samples  Numbers of samples taken per pixel in the x and y directions.
         For example, if the nsamples is set to \texttt{3}, then for every
         pixel in the image file, 9 samples (3 x 3) are averaged.

\subsection{Projection Dialog}
This creates a projection file from a phantom.

\section{Image Menus}
\subsection{File - Properties}
\subsection{View}
\subsection{Image}
These commands create a new image.
\subsection{Filter}
These commands filter image.

\subsection{Anaylze}

\section{Projection Menus}
\subsection{Convert Polar Dialog}
\subsection{Convert FFT Polar Dialog}
\subsection{Filtered Backprojection Dialog}

\section{Plot Menus}
\subsection{File - Properties}
\subsection{File - Save}
Plot files can be saved. They are saved in an ASCII text format.

\subsection{View Menu}
\subsubsection{Set}
\subsubsection{Auto}
\subsubsection{Full}

