{'fraction_non_alphanumeric': 0.012596899224806201, 'fraction_numerical': 0.0, 'mean_word_length': 4.675824175824176, '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 restoration scheme for images with missing parts

This paper proposes a restoration scheme which restores a group of pixels by malfunctioning of imaging equipment or a part of an object hidden by another object. This restoration starts on the circumference of the group of missing pixels and proceeds to the interior to make the restored image acceptable for the human viewer. First, edges of objects in the neighborhood of the missing pixels are extracted. Second, the direction of the edge passing through a pixel to be restored is estimated by the least-square method. The estimated edge direction is used to determine reference pixels from which the missing pixel is restored. Care is taken so that the restored gray level of the missing pixel is not extremely different from those of its neighbors. If an edge enters a missing part of an image and another edge goes out of this part, the two edges are connected to produce a single, smooth edge. Computer simulations will demonstrate the effectiveness of the proposed method.