This commit is contained in:
Chintak Sheth
2013-05-28 11:55:26 +05:30
parent 390a6c664b
commit afd2208ff2
+1 -1
View File
@@ -101,7 +101,7 @@ def convex_hull_object(image, neighbors=8):
convex_obj = np.zeros(image.shape, dtype=bool)
convex_img = np.zeros(image.shape, dtype=bool)
for i in range(0, labeled_im.max()+1):
for i in range(0, labeled_im.max() + 1):
convex_obj = convex_hull_image(labeled_im == i)
convex_img = np.logical_or(convex_img, convex_obj)