ANSI-C program: ave2pwr.c
NAME
ave2pwr - Averages two registered backscatter intensity
images.
SYNOPSIS
ave2pwr <pwr1> <pwr2> <pwr_out>
<width> [scale_factor]
<pwr1> | intensity image 1 (float values) |
<pwr2> | intensity image 2 (float values) |
<pwr_out> | output file (float): (pwr1+scale_factor*pwr2)/2 |
<width> | number of samples/row |
[scale_factor] | scale factor for image 2 (absolute value, not dB)(default: 1.0) |
EXAMPLE
ave2pwr 1352_1610.pwr1 1352_1610.pwr2 1352_1610.pwr
2500
INSTALLATION
Source code ave2pwr.c in ./src. For compilation adjust and use
Makefile: Executable version ave2pwr in ../bin
AVAILABILITY
Uses ISP type definition file typedef_ISP.h.
DESCRIPTION
ave2pwr reads the two backscatter intensity images (or other
files of type float) and calculates for each pixel the average of
the two images. Image 2 may be scaled with a userdefined factor.
result
=
(
pwr1
+
scale_factor
*
pwr2
)/2
.
The program assumes that the two input images are registered to
the same geometry (as it is the case for example for the two
backscatter images of an interferometric pair. Averaging two
backscatter intensity images allows to reduce the speckle noise
and therby improve the spatial/radiometric resolution. The
averaged data are written as the output file
<pow_out> of type float.Format and size of the
output file corresponds to the input files. The display and
generation of hard copies of the resulting averaged image and the
image intensities is supported by special programs allowing the
generation of SUN raster or BMP format image files, a format
accepted by most image processing software packages.
OPTIONS
Image 2 may be scaled using the user defined scale factor (linear
scale, not dB values are used).
SEE ALSO
typedef_ISP.h, lin_comb .
DIAGNOSTICS
All messages are generally self-explanatory.
NOTES
None.
© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2000.
UW, CW, last change 24-Jan-2000.