boxavg generates a frame where each new pixel is the mean of the box of pixels centred on the old. Each window is treated independently. Edge pixels just use whatever pixels are near them. This can be applied multiple times to simulate gaussian smoothing. This routine may be useful in spotting bad pixels.
boxavg input xhwidth yhwidth output
input | --- | Input frame |
xhwidth | --- | half-width of the box in X. The actual box size in X will be 2*xhwidth+1 |
yhwidth | --- | half-width of the box in Y. The actual box size in Y will be 2*yhwidth+1 |
output | --- | Output frame |
See also boxmed
This command is a member of the classes: Arithematic, Manipulation, Programs.
Author: T.R. Marsh
Created: 29 June 2004