{'fraction_non_alphanumeric': 0.016908212560386472, 'fraction_numerical': 0.0, 'mean_word_length': 5.341836734693878, '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}}
Fast algorithm for visibility enhancement of the images with low local contrast

In the paper, we propose new fast and effective approach for automatic visibility enhancement of images with poor global and local contrast. Initially, we developed the technique for scanned images with dark and light background regions and low visibility of foreground objects in both types of regions. Newly proposed algorithm carries out locally adaptive tone mapping by means of variable S-shaped curve. We use cubic Hermit spline. Starting and ending points of the spline depend on global brightness contrast, whereas tangents depend on local distribution of background and foreground pixels. Alteration of the tangents for adjacent areas is smoothed in order to avoid forming of visible artifacts. The description of several optimization tricks, which allow realization of high-speed algorithm, is given. We compare proposed method with several well-known image enhancement techniques by means of estimation of Michelson contrast (also known as visibility metric) for a number of test patterns. Disclosed algorithm outperforms tested alternatives. Finally, we extend application of proposed method for photo enhancement and correction of images with haze.