median filter Algorithm

median filtering is very widely used in digital picture processing because, under certain conditions, it preserves edges while remove noise (but see discussion below), also have applications in signal processing. The median Filter is a non-linear digital filtering technique, often used to remove noise from an picture or signal.

median filter source code, pseudocode and analysis