{'fraction_non_alphanumeric': 0.022809123649459785, 'fraction_numerical': 0.004801920768307323, 'mean_word_length': 4.450980392156863, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A method for wide density salt and pepper noise removal

A new method for removal of wide density salt and pepper noise in image is proposed. Every pixel in a noise corrupted image is classified to which it is a noise pixel or noise-free pixel. A noise pixel should be modified by a filter. On the contrary, noise-free pixel is kept unchanged. If noise-free pixel is detected as noise pixel wrongly, the restored image will be blurred. The difference between the central pixel and its neighbors aligned with four directions in local window is used to detect noise. Then the noise pixel is replaced by a histogram weighted mean filtering value. Experimental results show that the proposed method can not only efficiently remove 10%~90% wide density salt-and-pepper noise, but also can well preserve the detail information of an image.