From d9f2b0a19eea514a7063791765622e397b695269 Mon Sep 17 00:00:00 2001 From: julien Lengrand-Lambert Date: Fri, 16 Mar 2018 13:35:41 +0100 Subject: [PATCH] Remove unused line --- tippy/segmentations.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tippy/segmentations.py b/tippy/segmentations.py index 93c9bf7..3db990f 100644 --- a/tippy/segmentations.py +++ b/tippy/segmentations.py @@ -84,8 +84,6 @@ def simple_region_growing(img, seed, threshold=1, conn=4): contour_val.append(img[temp_pix[1], temp_pix[0]] ) reg[temp_pix[1], temp_pix[0]] = 150 #add the nearest pixel of the contour in it - dist = abs(int(numpy.mean(contour_val)) - mean_reg) - dist_list = [abs(i - mean_reg) for i in contour_val ] dist = min(dist_list) #get min distance index = dist_list.index(min(dist_list)) #mean distance index @@ -101,4 +99,4 @@ def simple_region_growing(img, seed, threshold=1, conn=4): del contour[index] del contour_val[index] - return reg \ No newline at end of file + return reg