This directory contains C programs to compute the sequential MAP (SMAP) 
estimate using a multiresolution non-homogenous generalized Gaussian MRF with a 
fixed value of p and the ML estimate of the scale parameter, sigma, computed 
directly from the projection data using the EM algorithm at each resolution.

Programs:
--------

emis.c - C program to compute SMAP image for emission data

  Compilation: make emis
  Usage: emis data.mat support.mat p no_iter output.mat VERBOSE

trans.c - C program to compute SMAP image for transmission data

  Compilation: make trans
  Usage: trans data.mat support.mat p no_iter output.mat VERBOSE

Input files:
-----------

data.mat - MATLAB file containing projection data (see ../data/README)

support.mat - MATLAB file containing the binary image of the support of the
			  object (see ../support/README).  Note the MATLAB 
			  file should contain the support image in a matrix named 'mask'.

Output file:
-----------

The programs writes out a MATLAB file containing the SMAP reconstruction
at all the resolutions.  A description of all the variables contained in
the output file is as follows:

Let k denote the resolution.  Let k=0 denote the finest resolution, and
let k=L denote the coarsest resolution.  Then

X0 ... XL: SMAP reconstructions at resolutions k=0,...,L

RX0 ... RXL-1: Bi-cubic interpolated image from previous resolution
			   used as the initial condition at resolutions k=0,...,L-1

SX0 ... SXL-1: Local scale parameter images at resolutions k=0,...,L-1


Parameters to the programs:
--------------------------

p - Shape parameter of the GGMRF (1 < p <= 2).  When p=2, the GGMRF model
	reduces to the Gaussian MRF.

no_iter - no. of iterations performed by the optimization algorithm (ICD) at
          the finest resolution

VERBOSE - Set 1 for verbose mode, 0 for quiet mode.


Examples:
--------

EXAMPLE_EMIS - Shell script for computing the SMAP reconstruction for the 
			   example emission data
EXAMPLE_TRANS - Shell script for computing the SMAP reconstruction for the
				example transmission data



