{'fraction_non_alphanumeric': 0.02180232558139535, 'fraction_numerical': 0.0, 'mean_word_length': 5.625, '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}}
Region-based thresholding using component tree

A gray-level image can be represented by a component tree, based on the inclusion relation of connected regions obtained by threshold decomposition. The great advantage of this structure is the efficient determination of a set of attributes for each component of the image, being widely used in morphological filtering (for instance, area as attribute to the area opening). This paper describes the computation of new statistical attributes determined incrementally from this tree construction in quasi-linear time, defining variations of anti-extensive operators as region-based contrast restriction and region-based adaptive thresholding.