BLD: add the extension to bento.info, fix names

This commit is contained in:
Evgeni Burovski
2016-02-02 17:29:56 +00:00
parent 99de44744a
commit 212c3d15ce
5 changed files with 9 additions and 5 deletions
+3
View File
@@ -119,6 +119,9 @@ Library:
Extension: skimage.morphology._skeletonize_cy
Sources:
skimage/morphology/_skeletonize_cy.pyx
Extension: skimage.morphology._skeletonize_3d_cy
Sources:
skimage/morphology/_skeletonize_3d_cy.pyx
Extension: skimage.transform._radon_transform
Sources:
skimage/transform/_radon_transform.pyx
+2 -1
View File
@@ -6,7 +6,7 @@ from .selem import (square, rectangle, diamond, disk, cube, octahedron, ball,
octagon, star)
from .watershed import watershed
from ._skeletonize import skeletonize, medial_axis
from .skel import compute_thin_image as compute_thin_image
from ._skeletonize_3d import skeletonize_3d as compute_thin_image
from .convex_hull import convex_hull_image, convex_hull_object
from .greyreconstruct import reconstruction
from .misc import remove_small_objects, remove_small_holes
@@ -35,6 +35,7 @@ __all__ = ['binary_erosion',
'label',
'watershed',
'skeletonize',
'skeletonize_3d',
'medial_axis',
'convex_hull_image',
'convex_hull_object',
@@ -2,7 +2,7 @@ from __future__ import division, print_function, absolute_import
import numpy as np
from ._skel import _compute_thin_image
from ._skeletonize_3d_cy import _compute_thin_image
def _prepare_image(img_in):
@@ -37,7 +37,7 @@ def _postprocess_image(img_o, intensity):
return img_oo
def compute_thin_image(img_in):
def skeletonize_3d(img_in):
"""Compute the thin image.
"""
img, intensity = _prepare_image(img_in)
+2 -2
View File
@@ -16,7 +16,7 @@ def configuration(parent_package='', top_path=None):
cython(['_skeletonize_cy.pyx'], working_path=base_path)
cython(['_convex_hull.pyx'], working_path=base_path)
cython(['_greyreconstruct.pyx'], working_path=base_path)
cython(['_skel.pyx.in'], working_path=base_path)
cython(['_skeletonize_3d_cy.pyx.in'], working_path=base_path)
config.add_extension('_watershed', sources=['_watershed.c'],
include_dirs=[get_numpy_include_dirs()])
@@ -26,7 +26,7 @@ def configuration(parent_package='', top_path=None):
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_greyreconstruct', sources=['_greyreconstruct.c'],
include_dirs=[get_numpy_include_dirs()])
config.add_extension('_skel', sources=['_skel.c'],
config.add_extension('_skeletonize_3d_cy', sources=['_skeletonize_3d_cy.c'],
include_dirs=[get_numpy_include_dirs()])
return config