Gamma LAT: Reference Manual


average_filter

ANSI-C program: average_filter.c

NAME
average_filter - Running average filter for files of type float.

SYNOPSIS
average_filter <input_data> <output_data> <width> <bx> [by] [weights_flag]

<input_data> input data (file of type float)
<output_data> output data (file of type float)
<width> number of samples/row
<bx> filter size in x direction (number of cols)
[by] filter size in y direction (number of rows)(default=bx)
[weights_flag] flag for weighting function selection(default=0)
0: no weighting function applied
1: linearly decrease weighting function
2: gaussian weighting function

EXAMPLE
average_filter 1352_1610.pwr1 1352_1610.pwr1_average 2500 4 1

INSTALLATION
Source code average_filter.c in ./src. For compilation adjust and use Makefile: Executable version average_filter in ../bin

AVAILABILITY
Uses type definition file typedef_ISP.h.

DESCRIPTION
average_filter filters the input data of type float with a running average filter. The size of the window used for the filtering and the weighting function to apply may be selected. For weights_flag=0 no weighting function is applied, i.e. all filter coefficients are set to 1. For weights_flag=1 a linear weighting function is applied, i.e. the filter coefficients decrease linearly with inclreasing distance to the center of the filter window. For weights_flag=2 a Gaussian weighting function is applied, i.e. the filter coefficients decrease with inclreasing distance to the center of the filter window following a Gauss function.

OPTIONS
Userdefined filter window size and weighting function.

SEE ALSO
typedef_ISP.h, frost .

DIAGNOSTICS
All messages are generally self-explanatory.

NOTES
None.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 1997.
UW, CW, last change 6-Jan-1997.