Usage: medianfilter in.pgm el.pgm out.pgm
Description: Let F be the input image, G be the output image, and E the structuring element. then for each pixel p, G[p] is the median element of the sorted list (by increasing order) of the pixel values in the set { F[q], q in E[p] }.
The median filter is a particular case of rank filter (see rankfilter.c), with rank = 0.5 .
Types supported: byte 2d, byte 3d
Category: morpho