Performance Comparison of Five Spatial Filtering Algorithms for Salt-and-Pepper Noise Removal
DOI:
https://doi.org/10.65496/jcste.2026.93Keywords:
Image denoising, Salt-and-pepper impulse noise, Median filter, Order-statistic filterAbstract
This work presents a rigorous quantitative evaluation of five core spatial filters for the mitigation of salt-and-pepper impulse noise, namely mean, median, maximum, minimum and order-statistic filters (with k=7), using MATLAB simulation. Three well-established standard greyscale benchmark images form the test dataset, with Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index Measure (SSIM) and Signal-to-Noise Ratio (SNR) adopted as quantitative performance metrics. The bulk of published research focuses on refining single filter architectures, yet few studies offer holistic cross-algorithm testing within identical experimental constraints. To resolve this identified research gap, this paper quantifies operational use-cases for each classic spatial filter and develops measurable selection benchmarks for industrial image processing workflows, with direct relevance to clinical medical imaging, continuous surveillance capture and embedded vision hardware. Empirical testing confirms that the median filter achieves optimal noise reduction at a noise density of 0.1, recording average scores of 30.30 dB PSNR, 0.989 SSIM and 0.97 SNR. The denoising performance of the k=7 order-statistic filter falls midway between the median filter and the two extremum variants. Maximum and minimum filters produce negative SNR outputs, confirming their unsuitability for mixed dual-polarity salt-and-pepper noise. Adjusting the integer parameter k allows the order-statistic filter to adapt to differing noise polarities; peak performance of 26.58 dB PSNR occurs at k=5, with rapid degradation observed as k diverges from the median index.
Downloads
References
[1] Zhang Yongfei, Deng Hui. An image denoising algorithm based on adaptive median filtering and anisotropic diffusion filtering[J]. Equipment Manufacturing Technology, 2023(11): 26-30.
[2] Zhang Nana, Zhang Yuanyuan, Ding Weiqi. A review of classical image denoising methods[J]. Chemical Automation and Instrumentation, 2021, 48(5): 409-413.
[3] Wang Bo. Comparison of improved median filtering algorithms for salt-and-pepper noise removal[J]. Journal of Guiyang University (Natural Science Edition), 2019, 14(3): 83-87.
[4] Qi Yanli. Comparative study of three image denoising methods[J]. Science and Technology Vision, 2019(26): 24-25.
[5] Xing Xiaoxiao, Li Jie. Research on spatial filtering image denoising algorithms[J]. Electronic Technology and Software Engineering, 2022(16): 144-147.
[6] Hu Jingbo. Analysis of improved median filtering denoising algorithm[J]. Information Technology, 2011(8): 32-33.
[7] Huang Shuangshuang, Qian Yunsheng, Liu Lei. Research on adaptive weighted mean and fast median filtering fusion algorithm[J]. Computer and Digital Engineering, 2024, 52(3): 700-704.
[8] Ivković R M, Milošević I M, Milivojević Z N. Regeneration Filter: Enhancing Mosaic Algorithm for Near Salt & Pepper Noise Reduction[J]. Sensors, 2025, 25(1): 210. DOI: https://doi.org/10.3390/s25010210
[9] Siva M V, Jayakumar E P. EAMF: Efficient Approximate Median Filter Hardware Architecture Using Nonsorting Method for Salt-and-Pepper Noise Removal[J]. Journal of Circuits, Systems and Computers, 2025, 34(11): 2550292. DOI: https://doi.org/10.1142/S0218126625502925
[10] Zhang Y F, Deng H. Salt and Pepper Denoising Filters for Digital Images: A Technical Review[J]. Journal of Electrical and Computer Engineering, 2024, 2024: 1-16.
[11] Cai R T, Chen G X, Li J, et al. A denoising method for salt and pepper noise in remote sensing based on Swin-Transformer convolution U-Net and filtering—FSCU-Net[J]. Earth and Space Science, 2025, 12: e2025EA004225. DOI: https://doi.org/10.1029/2025EA004225
[12] Zhou K. A New Weighted Nuclear Norm Regularization Model for Removing Salt and Pepper Noise With Applications[J]. IET Image Processing, 2025, 19(8): 2134-2145. DOI: https://doi.org/10.1049/ipr2.70138
[13] Lu C T, Chou T C. A two-stage filter for removing salt-and-pepper noise using noise detector based on characteristic difference parameter and adaptive directional mean filter[J]. PLOS ONE, 2018, 13(10): e0205736. DOI: https://doi.org/10.1371/journal.pone.0205736

