vsvpsf(1)

PROGRAM
vsvpsf - Perform restoration of general space-variant pointspread functions

SYNTAX

vsvpsf

-i  input (degraded) image

-psf
    quantized SVPSF

-t  filter threshold

-o  output (restored) image

[-V]
    Gives the version for vsvpsf

[-U]
    Gives the usage for vsvpsf

[-P]
    Prompts for command line options

[-A [file1]]
    Creates the answer file called vsvpsf.ans or file1

[-a [file1]]
    Uses vsvpsf.ans or file1 as the answer file

DESCRIPTION
vsvpsf performs restoration of space-varying blurs. The technique used is to restore the entire image once for each of the set of pointspread functions present in the image, and then merge the result images together depending on which pointspread is operating at each location.

The pointspread image should be a single band image of type INT with FLOAT maps. The maps should be interpreted as follows: 1) Each entry in the map (vector) is a 2D sampled representation of the pointspread function somewhere in the image, 2) The size of the 2D sampled PSF (in rows and columns) is map_subrow_size (rows) by map_col_size/map_subrow_size (cols). This image is usually obtained by using vquant to quantize the distribution of PSF in the image and also to produce the mapping information.

A simple thresholded inverse filter (vinverse) is used to perform the individual restorations.

REQUIRED ARGUMENTS

-i  type: infile
    desc: input (degraded) image

-psf
    type: infile
    desc: quantized SVPSF

-t  type: float
    desc: filter threshold

-o  type: outfile
    desc: output (restored) image

OPTIONAL ARGUMENTS
none

EXAMPLES
% vibf -surface s.ramp.xv -sputter sp.xv -dist 0.2 -psf psf.xv
% vquant -i psf.xv -o psf.128.xv -n 128 -axis 2 -s 1
% vsvpsf -i input.xv -psf psf.128.xv -o dwell.xv -t 10.0

Generates an image of pointspread functions, quantizes the pointspread functions, and uses vsvpsf to restore the image input.xv producing dwell.xv. Note that vibf is NOT in the distribution, but is used as an example of a routine that computes PSFs for use in the quantization step. In this example, an large nuber of PSFs is computed, one for each pixel. This set is quantized down to 128 PSFs that closely represnet the original set. The smaller set is used in the restoration, often with little error provided that the quantization was carefully done.

SEE ALSO
intro(1), verror(3), vgparms(3), vutils(3), lvsvpsf(3) vinverse, vquant

RESTRICTIONS
COMPLEX data types are not supported. Yet.

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.