diff --git a/skimage/feature/__init__.py b/skimage/feature/__init__.py index 70c154b8..eb98945c 100644 --- a/skimage/feature/__init__.py +++ b/skimage/feature/__init__.py @@ -1,5 +1,5 @@ -from .hog import hog -from .greycomatrix import greycomatrix, greycoprops +from ._hog import hog +from ._greycomatrix import greycomatrix, greycoprops from .peak import peak_local_max -from .harris import harris +from ._harris import harris from .template import match_template diff --git a/skimage/feature/greycomatrix.py b/skimage/feature/_greycomatrix.py similarity index 99% rename from skimage/feature/greycomatrix.py rename to skimage/feature/_greycomatrix.py index 5b2b92db..0926117b 100644 --- a/skimage/feature/greycomatrix.py +++ b/skimage/feature/_greycomatrix.py @@ -5,7 +5,7 @@ properties to characterize image textures. import numpy as np -from ._greycomatrix import _glcm_loop +from ._greycomatrix_cy import _glcm_loop def greycomatrix(image, distances, angles, levels=256, symmetric=False, diff --git a/skimage/feature/_greycomatrix.pyx b/skimage/feature/_greycomatrix_cy.pyx similarity index 100% rename from skimage/feature/_greycomatrix.pyx rename to skimage/feature/_greycomatrix_cy.pyx diff --git a/skimage/feature/harris.py b/skimage/feature/_harris.py similarity index 100% rename from skimage/feature/harris.py rename to skimage/feature/_harris.py diff --git a/skimage/feature/hog.py b/skimage/feature/_hog.py similarity index 100% rename from skimage/feature/hog.py rename to skimage/feature/_hog.py diff --git a/skimage/feature/setup.py b/skimage/feature/setup.py index 39358fd3..2c50a592 100644 --- a/skimage/feature/setup.py +++ b/skimage/feature/setup.py @@ -12,10 +12,10 @@ def configuration(parent_package='', top_path=None): config = Configuration('feature', parent_package, top_path) config.add_data_dir('tests') - cython(['_greycomatrix.pyx'], working_path=base_path) + cython(['_greycomatrix_cy.pyx'], working_path=base_path) cython(['_template.pyx'], working_path=base_path) - config.add_extension('_greycomatrix', sources=['_greycomatrix.c'], + config.add_extension('_greycomatrix_cy', sources=['_greycomatrix_cy.c'], include_dirs=[get_numpy_include_dirs()]) config.add_extension('_template', sources=['_template.c'], include_dirs=[get_numpy_include_dirs()]) diff --git a/skimage/filter/__init__.py b/skimage/filter/__init__.py index 04c972cc..bdbbb531 100644 --- a/skimage/filter/__init__.py +++ b/skimage/filter/__init__.py @@ -1,7 +1,7 @@ from .lpi_filter import * from .ctmf import median_filter -from .canny import canny +from ._canny import canny from .edges import sobel, hsobel, vsobel, hprewitt, vprewitt, prewitt -from .tv_denoise import tv_denoise -from .rank_order import rank_order +from ._tv_denoise import tv_denoise +from ._rank_order import rank_order from .thresholding import threshold_otsu, threshold_adaptive diff --git a/skimage/filter/canny.py b/skimage/filter/_canny.py similarity index 100% rename from skimage/filter/canny.py rename to skimage/filter/_canny.py diff --git a/skimage/filter/rank_order.py b/skimage/filter/_rank_order.py similarity index 100% rename from skimage/filter/rank_order.py rename to skimage/filter/_rank_order.py diff --git a/skimage/filter/tv_denoise.py b/skimage/filter/_tv_denoise.py similarity index 100% rename from skimage/filter/tv_denoise.py rename to skimage/filter/_tv_denoise.py diff --git a/skimage/morphology/__init__.py b/skimage/morphology/__init__.py index d639be1c..abc9986f 100644 --- a/skimage/morphology/__init__.py +++ b/skimage/morphology/__init__.py @@ -2,5 +2,5 @@ from .grey import * from .selem import * from .ccomp import label from .watershed import watershed, is_local_maximum -from .skeletonize import skeletonize, medial_axis +from ._skeletonize import skeletonize, medial_axis from .convex_hull import convex_hull_image diff --git a/skimage/morphology/skeletonize.py b/skimage/morphology/_skeletonize.py similarity index 99% rename from skimage/morphology/skeletonize.py rename to skimage/morphology/_skeletonize.py index a8d31bdd..58842c6d 100644 --- a/skimage/morphology/skeletonize.py +++ b/skimage/morphology/_skeletonize.py @@ -5,7 +5,7 @@ Algorithms for computing the skeleton of a binary image import numpy as np from scipy import ndimage -from ._skeletonize import _skeletonize_loop, _table_lookup_index +from ._skeletonize_cy import _skeletonize_loop, _table_lookup_index # --------- Skeletonization by morphological thinning --------- diff --git a/skimage/morphology/_skeletonize.pyx b/skimage/morphology/_skeletonize_cy.pyx similarity index 100% rename from skimage/morphology/_skeletonize.pyx rename to skimage/morphology/_skeletonize_cy.pyx diff --git a/skimage/morphology/setup.py b/skimage/morphology/setup.py index fcf33f7f..2dd4a378 100644 --- a/skimage/morphology/setup.py +++ b/skimage/morphology/setup.py @@ -15,7 +15,7 @@ def configuration(parent_package='', top_path=None): cython(['ccomp.pyx'], working_path=base_path) cython(['cmorph.pyx'], working_path=base_path) cython(['_watershed.pyx'], working_path=base_path) - cython(['_skeletonize.pyx'], working_path=base_path) + cython(['_skeletonize_cy.pyx'], working_path=base_path) cython(['_pnpoly.pyx'], working_path=base_path) cython(['_convex_hull.pyx'], working_path=base_path) @@ -25,7 +25,7 @@ def configuration(parent_package='', top_path=None): include_dirs=[get_numpy_include_dirs()]) config.add_extension('_watershed', sources=['_watershed.c'], include_dirs=[get_numpy_include_dirs()]) - config.add_extension('_skeletonize', sources=['_skeletonize.c'], + config.add_extension('_skeletonize_cy', sources=['_skeletonize_cy.c'], include_dirs=[get_numpy_include_dirs()]) config.add_extension('_pnpoly', sources=['_pnpoly.c'], include_dirs=[get_numpy_include_dirs()])