This package contains programs for Bayesian MAP reconstructions
for the IndyPET scanner. For examples of how to use these, see
EXAMPLES subdirectory.

The programs are

1) emisnew
Emission reconstruction of a single plane. 

Usage:
emisnew [-p plane (default=0)] [-r recon_resolution] 
[-i no_iter] [-I (interpolate result)] [-s sigma] 
[-f singleframe_no [-t]] cfg_file init_file out_file

Command line arguments are:
  cfg_file  : Name of configuration file. The configuration file
              contains name of sinogram and normalization
              files and specifies which corrections are to be performed.
              For an example see EXAMPLE/config_file1. A complete list
              of syntax/options for the cfg_file is in README.cfg
  init_file : Matlab .mat file containing initial image in 'img' variable.
  out_file  : Name of .mat format output file.
Command line options are:
  -p plane      : plane_number to be reconstructed 
                  (only when input file is cti file)
  -r resolution : resolution of reconstruction in pixels
  -i niter      : number of reconstruction iterations
  -I            : Interpolate the final reconstruction 
                  by a factor of 2 (pixel replication)
  -s sigma      : MRF prior parameter. Smaller sigma=smoother reconstruction
  -f frame      : Reconstruct only a single frame, i.e. use  
                  only data from single gantry position
                  If in addition -t is specified, rotate reconstruction 
                  by negative gantry angle for that frame.


2) recon_all_planes: Calls emisnew to reconstruct 
   multiple planes. This works only when using a cti-format 
   sinogram file (not with .mat input file). 
   After all planes are reconstructed, they are written to a common
   cti .img file.  

Usage:
recon_all_planes [-r recon_resolution] [-i no_iter] [-I (interpolate result)] [-s sigma]
[-p first_plane (default 0)] [-l last_plane (default 63)] [-n plane_step (default 9)
[-f singleframe_no [-t]] cfg_file init_file out_file
                                  
Command line arguments and options are same as for emisnew except:

init_file/out_file: These filename are prefixes used for all planes. The 
                    filenames actually passed to emisnew are
                    init_file_p<plane>.mat
                    out_file_p<plane>.mat 
                    where plane is the number of the reconstructed plane.
                    The final .img output file containing all planes
                    will be called out_file.img 

-p : first plane to be reconstructed (default 0)
-l : last  plane to be reconstructed (default 63)
-n : step (default 9)

(By default, the program reconstructs planes 0,9,18,27,36,45,54,63.)
                   
                

3) mat2img: Assembles multiple matlab files into a single 
            cti .img format output file. (Called by recon_all_planes).

4) conv_sino: Converts cti .scn sinogram file to Matlab .mat file.

5) for_nrm: forward project a .mat image to a sinogram in .mat format.

6) sysmat_p0: system matrix for the scanner as generated by IUcalib package.
