{'fraction_non_alphanumeric': 0.016417910447761194, 'fraction_numerical': 0.0, 'mean_word_length': 5.067873303167421, '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}}
Oversegmentation reduction by flooding regions and digging watershed lines

The watershed transformation is a primary tool for segmenting a grey-tone image into subsets that are of interest to a visual observer. The resulting image, however, may often appear oversegmented into a large number of tiny regions (basins), most of which are not significant to the problem of domain. In this paper, a method for removing these nonsignificant basins is presented. The notions of relative significance and intrinsic significance are introduced, which lead to the definition of three types of significance for a basin: strong, weak and partial. The merging of a basin with other basins only occurs when the significance of the basin is not strong, and is restricted to suitably selected adjacent basins. The merging is performed by using an iterated process consisting of two phases. The first involves the removal of certain regional minima, and is accomplished by following either a flooding or a digging scheme. The second identifies the basins corresponding to the regional minima remaining in the image and utilizes the watershed transformation. An appropriate selection of the basins to be merged produces a segmented image perceptually close to the original image. The performance of the proposed method is for the case of astronomic images.