LEEFILT function performs the Lee
filter algorithm on an image array using a box of size 2
+1. This function can also be used on vectors. The Lee technique smooths additive image noise by generating statistics in a local neighborhood and comparing them to the expected values.
This routine is written in the IDL language. It is based upon the algorithm published by Lee (
25(5), 636-646, May 1986). Its source code can be found in the file
subdirectory of the IDL distribution.
Result = LEEFILT(
A [, N [, Sig]]
The input image array or one-dimensional vector.
The size of the filter box is 2
+1. The default value is 5.
Estimate of the standard deviation. The default is 5. If
is negative, IDL interactively prompts for a value of
, and displays the resulting image using TVSCL (for arrays) or PLOT (for vectors). To end this cycle, enter a value of 0 (zero) for
Set this keyword to apply a more accurate (but slower) implementation of the Lee filter.