mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-01 12:50:48 +08:00
BUG: Rename files with similar function, python module, and cython extension names.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
@@ -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()])
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ---------
|
||||
|
||||
@@ -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()])
|
||||
|
||||
Reference in New Issue
Block a user