{'fraction_non_alphanumeric': 0.014285714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 5.217741935483871, '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 Two-Stage Contrast Enhancement Algorithm for Digital Images

Studies of contrast sensitivity of the human eyes show that logarithmic curves obey the Weber-Fechner law of just noticeable difference response in human perception. In this paper, we propose a local contrast enhancement algorithm with logarithm-based curves for both high dynamic and low dynamic images and this algorithm can adaptively change the curvature with local information. We also define two parameters to decide the level of contrast enhancement in the tone mapping procedure. For halo artifact which is suffered from local operator, a two-stage procedure is designed to solve the problem. We present experimental results to show performance of our algorithm compared with other existing methods.