From 5fa50a67651d4e4167553f5be115fc95460ac2c6 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Wed, 27 Jan 2016 15:53:20 +0000 Subject: [PATCH] MAINT: skel3d: prune dead code (eg, is_surface_point) --- skimage/morphology/_skel.pyx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/skimage/morphology/_skel.pyx b/skimage/morphology/_skel.pyx index 53696032..bb03a16b 100644 --- a/skimage/morphology/_skel.pyx +++ b/skimage/morphology/_skel.pyx @@ -223,13 +223,6 @@ cdef void get_neighborhood(pixel_type[:, :, ::1] img, ###### look-up tables -def fill_numpoints_LUT(n=256): - p = int(np.log2(n) + 1) - return np.sum(np.arange(n)[:, None] & (1 << np.arange(p)) != 0, axis=1) - -NUMPOINTS_LUT = fill_numpoints_LUT() - - def fill_Euler_LUT(): """ Look-up table for preserving Euler characteristic. @@ -405,14 +398,6 @@ cdef int index_octants(int octant, return n -def is_surfacepoint(neighbors, points_LUT): - for octant in OCTANTS: - n = index_octants(octant, neighbors) - if n not in (240, 165, 170) and points_LUT[n] > 2: - return False - return True - - cdef inline bint is_endpoint(pixel_type neighbors[]): """An endpoint has exactly one neighbor in the 26-neighborhood. """