Fix circular import between regionprops and convex_hull_image

This commit is contained in:
Johannes Schönberger
2015-11-17 10:19:09 -05:00
parent 3437eb89b0
commit 1278b02161
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,6 +5,7 @@ from scipy import ndimage as ndi
from ._label import label
from . import _moments
from ..morphology.convex_hull import convex_hull_image
__all__ = ['regionprops', 'perimeter']
@@ -134,7 +135,6 @@ class _RegionProperties(object):
@_cached_property
def convex_image(self):
from ..morphology.convex_hull import convex_hull_image
return convex_hull_image(self.image)
@property
+1 -1
View File
@@ -1,7 +1,7 @@
__all__ = ['convex_hull_image', 'convex_hull_object']
import numpy as np
from ..measure import grid_points_in_poly
from ..measure._pnpoly import grid_points_in_poly
from ._convex_hull import possible_hull
from ..measure._label import label
from ..util import unique_rows