This routine removes bad pixels from a two-dimensional NDF , replacing them with
the median of the eight (or less at the edges) neighbouring pixels.
At least three of these eight neighbouring pixels must have good
values (that is, they must not set to the bad value) otherwise the
resultant pixel becomes bad.
The positions of the pixels to be removed can be supplied in four
ways (see parameter MODE):
- In response to parameter prompts. A single bad pixel position is
supplied at each prompt, and the user is re-prompted until a null value
is supplied.
- Within a positions list such as produced by applications CURSOR,
LISTMAKE.
- Within a simple text file. Each line contains the position of a
pixel to be replaced.
- Alternatively, each bad pixel in the input NDF can be used
(subject to the above requirement that at least three out of the
eight neighbouring pixels are not bad).