From 89d4d97376066fdf3a4be0e7921c3222c581b6b9 Mon Sep 17 00:00:00 2001 From: mattminder <myfiles@Mattus-MacBook-Pro.local> Date: Tue, 19 May 2020 11:09:26 +0200 Subject: [PATCH] Removed commented-out code --- unet/segment.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/unet/segment.py b/unet/segment.py index 3d87387..8fab0d9 100644 --- a/unet/segment.py +++ b/unet/segment.py @@ -58,13 +58,8 @@ def cell_merge(wsh, pred): # bounding box obj_coords[obj1,:] = get_bounding_box(dil_objs[obj1,:,:]) -# objallpixels = np.where(dilobjs[obj1,:,:] != 0) -# objcoords[obj1,0]=np.min(objallpixels[0]) -# objcoords[obj1,1]=np.max(objallpixels[0]) -# objcoords[obj1,2]=np.min(objallpixels[1]) -# objcoords[obj1,3]=np.max(objallpixels[1]) - objcounter = 0 # will build up a new watershed mask, have to run a counter because some objects lost + objcounter = 0 # counter for new watershed objects for obj1 in range(wsh.max()): dil1 = dil_objs[obj1,:,:] -- GitLab