Level 2 Help for RESTORW

INP

The input files to RESTORW are:

1. The image to be restored.

2. Either:
 2a. (if MODE=PSF) the image containing the point spread function (PSF),
    which will be extracted using the AREA and SHIFT parameters by
    invoking program PSF,
   or:
 2b. (if MODE=OTF, default) the optical transfer function (OTF) of the
    degraded image, i.e., the fourier transform of the PSF.  

3. Optionally, the fourier transform of the desired output point
  spread function.  Normally one desires a delta function for this,
  and this input is not specified.


OUT

The output file is the restored image.


SIZE

The standard Vicar2 size parameter: (SL,SS,NL,NS), or:
 (starting line, starting sample, number of lines, number of samples).

This parameter defines the area in the input image which will be used
for processing.


SL

Starting line.
See SIZE.


SS

Starting sample.
See SIZE.


NL

Number of lines.
See SIZE.


NS

Number of samples.
See SIZE.


SN

This parameter specifies the signal-to-noise ratio to be used in the
restoration.  See HELP RESTORW for its use in the algorithm.


IFFT

This parameter allows the user to specify a file to contain the
fourier transform of the primary input.  Default is a file in the
local directory.

Possible reasons to specify this include problems in the default
directory, a desire to save this file for further processing, or
spreading of the I/O to different disks to avoid head contention.


OFFT

This parameter allows the user to specify a file to contain the
fourier transform of the output image.  Default is a file in the
local directory.

Possible reasons to specify this include problems in the default
directory, a desire to save this file for further processing, or
spreading of the I/O to different disks to avoid head contention.


MODE

This keyword parameter allows the user to specify whether the procedure
should compute the optical transfer function (OTF) from a point spread
function (PSF) contained in the second input image, or whether the
OTF will be supplied directly by the user.

MODE = PSF: second input is an image containing the PSF.  In this case
           the parameter AREA must be specified.

MODE = OTF: second input is the optical transfer function.  In this case,
           the parameters AREA, SHIFT, OTF, and PSF are ignored.


PSF

This parameter allows the user to specify a file to contain the
point spread function, if MODE=PSF has been specified.  Default is
a file in the local directory.

Possible reasons to specify this include problems in the default
directory, a desire to save this file for further processing, or
spreading of the I/O to different disks to avoid head contention.


OTF

This parameter allows the user to specify a file to contain the
fourier transform of the PSF (if MODE=PSF has been specified.)
Default is a file in the local directory.

Possible reasons to specify this include problems in the default
directory, a desire to save this file for further processing, or
spreading of the I/O to different disks to avoid head contention.


SCRATCH

This parameter allows the user to specify a file to contain the
scratch file needed by procedure FFT22.
Default is a file in the local directory.

Possible reasons to specify this include problems in the default
directory, a desire to save this file for further processing, or
spreading of the I/O to different disks to avoid head contention.


AREA

This parameter specifies the area of second input image containing
the PSF, if MODE=PSF has been specified. (Otherwise it is ignored.)

It follows the same convention as the SIZE parameter, i.e.:
 (starting line, starting sample, number of lines, number of samples).

The SHIFT keyword specifies whether the final PSF may lie outside this
area, after the centroid has been determined.


SHIFT

This parameter specifies whether the PSF extracted from the second input
(if MODE=PSF has been specified) will be allowed to lie partially ooutside
the area specified by the AREA parameter, after its centroid has been
determined.  If NOSHIFT is specified, then the size of the PSF will be
reduced if necessary to keep it inside the specified area.