www.pudn.com > 医学算法.rar > window
.TH WINDOW 1 "Ultrasonics Laboratory" .SH NAME window - Convolve an image with a square window (averaging) .SH SYNOPSIS window [if=file] [of=file] [n=#] [m=#] [back=#] .SH DESCRIPTION .B Window averages the pixels in a picture by convolving the picture with a square window. The size of the window is set with the .B m=# option. The default values is to average pixels in a 4 x 4 window. .PP Normally input for this program is taken from standard input and the results are sent to standard output. These defaults can be changed with the .B if=file and the .B of=file options, respectfully. The data should be single precision floating point numbers. .PP The size of the picture (n x n) is set with the .B n=# argument. The default value is 128. Finally, the background value when averaging near the edges is set with the .B back=# argument. If this is not specified then a value of zero is used. .SH DIAGNOSTICS If .B window can not open any file then an error is printed.