Files
scikit-image/skimage/morphology/__init__.py
T
Olivia 9ea085fd6f Added new functionality to remove small holes from images.
This is currently working with **kwargs except for inplace
which I cannot get working. It works with arrays of type int
but returns an array of type bool. Possibly in future add
labelling for arrays of type int. A UserWarning is produced
when using arrays of type int which seems to work normally
but the test created for this does not pick up the warning.

Any assistance on these issues would be helpful. I started
this at EuroScipy 2015 and this fixes issue #1642
2015-08-30 23:05:15 +01:00

45 lines
1.4 KiB
Python

from .binary import (binary_erosion, binary_dilation, binary_opening,
binary_closing)
from .grey import (erosion, dilation, opening, closing, white_tophat,
black_tophat)
from .selem import (square, rectangle, diamond, disk, cube, octahedron, ball,
octagon, star)
from .watershed import watershed
from ._skeletonize import skeletonize, medial_axis
from .convex_hull import convex_hull_image, convex_hull_object
from .greyreconstruct import reconstruction
from .misc import remove_small_objects, remove_small_holes
from ..measure._label import label
from .._shared.utils import deprecated as _deprecated
label = _deprecated('skimage.measure.label')(label)
__all__ = ['binary_erosion',
'binary_dilation',
'binary_opening',
'binary_closing',
'erosion',
'dilation',
'opening',
'closing',
'white_tophat',
'black_tophat',
'square',
'rectangle',
'diamond',
'disk',
'cube',
'octahedron',
'ball',
'octagon',
'label',
'watershed',
'skeletonize',
'medial_axis',
'convex_hull_image',
'convex_hull_object',
'reconstruction',
'remove_small_objects',
'remove_small_holes']