{'fraction_non_alphanumeric': 0.014727540500736377, 'fraction_numerical': 0.0, 'mean_word_length': 5.355140186915888, '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}}
The generalized morphological filter

A new class of morphological filters is proposed for image enhancement. The filter, known as the generalized morphological filter (GMF), uses multiple structuring elements and combines linear and morphological operations. In this paper, a special case of the GMF is considered whereby the optimal coefficients in the linear combination part of the filter are derived in closed form using minimum mean squared error. The GMF with these optimal coefficients was applied to a noisy image and compared with an averaging and median filter. The tests showed that GMF possesses effective noise suppression with reduced geometrical feature blurring.