maxbetjes commited on
Commit
881930b
·
verified ·
1 Parent(s): 661ed31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.5)
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