{'fraction_non_alphanumeric': 0.02064896755162242, 'fraction_numerical': 0.0, 'mean_word_length': 5.40251572327044, '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}}
An Adaptive Directional Non-Local Means Algorithm with Size-Adaptive Search Window for Image Denoising

The non-local means (NLM) algorithm computes the pixel similarity using a globally-fixed average patch and research window. Few studies have attempted to find a method of adaptively choosing a patch shape and research window size based on local characteristics. To exploit the local characteristics effectively, we propose an adaptive directional non-local means algorithm with size-adaptive search window (ADNLM-AW). The proposed algorithm first computes the direction of each pixel and partitions the entire image region into three classes. Subsequently, the directional rectangular patches are rotated to coincide with the direction of the texture and the search windows are adaptively adjusted to match the local characteristics of the regions. The experimental results show that the proposed algorithm outperforms other current NLM algorithms in terms of visual quality and peak signal to noise ratio (PSNR).