diff --git a/skimage/feature/__init__.py b/skimage/feature/__init__.py index c067268a..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 ._greycomatrix import greycomatrix, greycoprops from .peak import peak_local_max 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/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/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()])