Datasets:

Modalities:
Image
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
File size: 1,522 Bytes
b62898a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Explicitly setting `__all__` is necessary for type inference engines
# to know which symbols are exported. See
# https://peps.python.org/pep-0484/#stub-files

__all__ = [
    'expand_labels',
    'random_walker',
    'active_contour',
    'felzenszwalb',
    'slic',
    'quickshift',
    'find_boundaries',
    'mark_boundaries',
    'clear_border',
    'join_segmentations',
    'relabel_sequential',
    'watershed',
    'chan_vese',
    'morphological_geodesic_active_contour',
    'morphological_chan_vese',
    'inverse_gaussian_gradient',
    'disk_level_set',
    'checkerboard_level_set',
    'flood',
    'flood_fill',
]

from ._expand_labels import expand_labels
from .random_walker_segmentation import random_walker
from .active_contour_model import active_contour
from ._felzenszwalb import felzenszwalb
from .slic_superpixels import slic
from ._quickshift import quickshift
from .boundaries import find_boundaries, mark_boundaries
from ._clear_border import clear_border
from ._join import join_segmentations, relabel_sequential
from ._watershed import watershed
from ._chan_vese import chan_vese
from .morphsnakes import (
    morphological_geodesic_active_contour,
    morphological_chan_vese,
    inverse_gaussian_gradient,
    disk_level_set,
    checkerboard_level_set,
)

# We don't import flood and flood_fill from ..morphology
# because reaching into a parallel submodule is currently not supported by
# lazy_loader (see scientific-python/lazy-loader#52).
from ._watershed import flood, flood_fill