rank
[ XITE Reference Manual | XITE home ]
Name
rank - noise reduction filter
Syntax
rank <inimage> <outimage> <rank> [<dx> [<dy>]]
Description
rank noise filtering with window dx*dy
using the histogram update technique.
Every input pixel is replaced by the rank-th
pixel in a sorted vector containg all pixels
in the dx*dy window. rank=1 gives the min
filter, rank=dx*dy/2 gives the median filter,
and rank = dx*dy gives the max filter.
inimage - input image
outimage - output image
rank - the rank of the output pixel
dx - horizontal window size. Default value 3
dy - vertical window size. Default value dx
Files
See also
Diagnostics
Restrictions
Accepts only UNS_BYTE pixels. dx, dy must be
larger than 0. rank should be in [1..dx*dy]
Author
Tor L|nnestad, BLAB, ifi, UiO
Examples
rank mona.img monaRank.img 1
rank mona.img monaRank.img 3 7
rank mona.img monaRank.img 35 7 5
Id
$Id: rank.c,v 1.22 1997/01/10 16:09:01 svein Exp $