{'fraction_non_alphanumeric': 0.01129032258064516, 'fraction_numerical': 0.0, 'mean_word_length': 5.083333333333333, '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}}
Hierarchical watershed segmentation based on gradient image simplification

Watershed is one of the most widely used algorithms for segmenting remote sensing images. This segmentation technique can be thought as a flooding performed on a topographic relief in which the water catchment basins, separated by watershed lines, are the regions in the resulting segmentation. A popular technique for performing a watershed relies on the flooding of the gradient image in which high level values correspond to watershed lines and regional minima to the bottom of the catchment basins. Here we will refer as hierarchical segmentation a decomposition of the segmentation map respecting the nesting property from a finer to a coarser scale i.e. the set of partition lines at a coarser scale should be included in that of the finer scale. From the watershed lines or partitions lines of the gradient image, we propose to perform a simplification using novel operators of mathematical morphology for the filtering of thin and oriented features. By lowering the smallest edges, one can reach a coarser partition of the image. Then, by applying a sequence of progressively more aggressive filters it is possible to generate a hierarchy of segmentations.