mirror of
https://github.com/jlengrand/Tippy.git
synced 2026-03-10 00:41:17 +00:00
Remove unused line
This commit is contained in:
committed by
GitHub
parent
1f0777bcc5
commit
d9f2b0a19e
@@ -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
|
||||
return reg
|
||||
|
||||
Reference in New Issue
Block a user