mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-10 12:35:06 +08:00
Fix circular import between regionprops and convex_hull_image
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user