From f4332ce488f16897a4d9db5a84dcbb7bcbdb4b4a Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Sun, 28 Jul 2013 18:41:19 +0530 Subject: [PATCH] Removing circular import --- skimage/morphology/selem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/morphology/selem.py b/skimage/morphology/selem.py index f2cba44b..8d907d88 100644 --- a/skimage/morphology/selem.py +++ b/skimage/morphology/selem.py @@ -4,7 +4,6 @@ """ import numpy as np -from . import convex_hull_image def square(width, dtype=np.uint8): @@ -235,6 +234,7 @@ def octagon(m, n, dtype=np.uint8): The structuring element where elements of the neighborhood are 1 and 0 otherwise. """ + from . import convex_hull_image selem = np.zeros((m + 2*n, m + 2*n)) selem[0, n] = 1 selem[n, 0] = 1