Help for C130RECT
PURPOSE:
C130RECT removes panorama distortion in images acquired by scanners that
sample at equal angular increments. Tilt can be corrected and the aspect
ratio of the image can be adjusted.
EXECUTION:
Example
C130RECT INP OUT DEFL=30.0 TILT=11.4 SCALE=1.5
In this example, C130RECT will remove the scanning distortion
in image INP, using a 30 degree deflection from edge to center,
an expansion factor of 1.5, and a center 11.4 degrees off nadir.
OPERATION:
The program is essentially divided into three parts. The first of these
handles simple initialization and computes (using basic trigonometry)
values for the variables which are dependent on the image tilt and scan
width. The second part of the program fills a resampling address array
which, for each input pixel position, gives a real-valued index into
the input buffer from which values may be interpolated; this array mapping
may be dumped to the screen by specifying the DEBUG option. The third part
of the program reads in each line of the image, and using the resampling
address array and c routine resamp, corrects each line for distortion
according to the tilt and scan width specified, finally outputing each
line to the output image.
WRITTEN BY: John Addington, 7 February 1978
COGNIZANT PROGRAMMER: Michael Girard
REVISION: New
PARAMETERS:
INP
Input image file
OUT
Output image file
SIZE
Standard VICAR size field
SL
Starting line
SS
Starting sample - must be 1
NL
Number of lines
NS
Number of samples -
must be equal to input NS
DEFL
Scan deflection from center,
in degrees
TILT
Pointing angle of the central
pixel, in degrees from nadir
SCALE
Expansion factor
DEBUG
Prints resampling table
See Examples:
Cognizant Programmer: