Spaces:
Sleeping
Sleeping
Upload Colony_Analyzer_AI_zstack2_HF.py
Browse files
Colony_Analyzer_AI_zstack2_HF.py
CHANGED
|
@@ -275,7 +275,8 @@ def main(args):
|
|
| 275 |
for x in range(len(files)):
|
| 276 |
if x == best:
|
| 277 |
continue
|
| 278 |
-
mask = np.zeros_like(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY))
|
|
|
|
| 279 |
contours = colonies[colonies["source"]==x]
|
| 280 |
contours = list(contours["contour"])
|
| 281 |
cv2.drawContours(mask, contours, -1, 255, thickness=cv2.FILLED)
|
|
|
|
| 275 |
for x in range(len(files)):
|
| 276 |
if x == best:
|
| 277 |
continue
|
| 278 |
+
#mask = np.zeros_like(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY))
|
| 279 |
+
mask = np.zeros_like(img)
|
| 280 |
contours = colonies[colonies["source"]==x]
|
| 281 |
contours = list(contours["contour"])
|
| 282 |
cv2.drawContours(mask, contours, -1, 255, thickness=cv2.FILLED)
|