Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -243,7 +243,7 @@ def detect_cells(filepath, c, model, rescale_z, rescale_xy, progress=gr.Progress
|
|
| 243 |
original_shape = img.shape
|
| 244 |
img = sc.ndimage.zoom(img, (rescale_z, rescale_xy, rescale_xy))
|
| 245 |
|
| 246 |
-
background = np.quantile(img, 0.
|
| 247 |
|
| 248 |
img = np.maximum(img, background)-background
|
| 249 |
|
|
|
|
| 243 |
original_shape = img.shape
|
| 244 |
img = sc.ndimage.zoom(img, (rescale_z, rescale_xy, rescale_xy))
|
| 245 |
|
| 246 |
+
background = np.quantile(img, 0.75)
|
| 247 |
|
| 248 |
img = np.maximum(img, background)-background
|
| 249 |
|