Figure 2  (a) Salt-pepper noise with noise ratio 0.2, (b) Median filter (O/F RMS = 29.1),
(c) k-Nearest filter (O/F RMS=34.1), (d) Midrange filter (O/F RMS=72.9)
For every kind of method, there is its favarite noise. Box filtering is an average method. Median filtering is very suitable to filter the salt-pepper noise. It is shown in the above examples. (compare Fig.2 (a) and Fig. 2(b)) Gaussian filtering is good at Gaussian noise. Fig.3 (a) shows the filtered image of Fig. 1(a), with the parameter alfa equal to 2 and beta equal to 20. Contrast-dependent outlier removal filtering is good at Gaussian noise when the threshold value is big. Fig.3 (b) shows its effect and the noise image is also Fig. 1(a). The k-Nearest Neighbor filtering is good method to almost every noise. But it shows best effect when deal with Fig.1 (a) when k is 3. Fig. 3(c) is the effect.

Figure 3  (a) Gaussian (2,20) Filtered (O/F RMS=9.7), (b) CDOR(0.9) Filtered (O/F RMS=10.0),
(c) k-Nearest (3) Filtered (O/F RMS=7.4)