PANDORE Version 6 | GREYC-IMAGE |
pmedianfiltering applies a median filter to the input image im_in. Each pixel of the input image is replaced by the median value of its neighbors. The neighborhood size is defined by the parameter halfsize.
It is an rank filtering which can be used to remove impulse and exponential noise. It remove small details while preserving edge of type "step". However, this filter can affect the image geometry. For example, angle tends to be rounded, and edge of type roof and "peak" tends to be removed.
Returns SUCCESS or FAILURE.
Applies a 5x5 median filter to tangram.pan:
pmedianfiltering 2 tangram.pan out.pan
Lissage d'une image par médian standard séparable.
Author: Julien Robiaille