morphology.py 965 B

123456789101112131415161718192021222324252627
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.ndimage` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'iterate_structure', 'generate_binary_structure',
  7. 'binary_erosion', 'binary_dilation', 'binary_opening',
  8. 'binary_closing', 'binary_hit_or_miss', 'binary_propagation',
  9. 'binary_fill_holes', 'grey_erosion', 'grey_dilation',
  10. 'grey_opening', 'grey_closing', 'morphological_gradient',
  11. 'morphological_laplace', 'white_tophat', 'black_tophat',
  12. 'distance_transform_bf', 'distance_transform_cdt',
  13. 'distance_transform_edt'
  14. ]
  15. def __dir__():
  16. return __all__
  17. def __getattr__(name):
  18. return _sub_module_deprecation(sub_package='ndimage', module='morphology',
  19. private_modules=['_morphology'], all=__all__,
  20. attribute=name)