From 4b1b256009c93759cfeb840555a0b2093fa1a829 Mon Sep 17 00:00:00 2001 From: Xin Bo Qi Date: Thu, 11 Mar 2021 10:23:10 +0800 Subject: [PATCH] default for cell probability changed --- cellpose2msk/flow2msk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cellpose2msk/flow2msk.py b/cellpose2msk/flow2msk.py index cde6912..5aec1ad 100644 --- a/cellpose2msk/flow2msk.py +++ b/cellpose2msk/flow2msk.py @@ -5,7 +5,7 @@ import numpy as np from scipy import ndimage as ndimg -def flow2msk(flow, cell_prob, prob=0.0, grad=0.4, area=20, volume=100): +def flow2msk(flow, cell_prob, prob=0.5, grad=0.4, area=20, volume=100): shp, dim = flow.shape[:-1], flow.ndim - 1 l = np.linalg.norm(flow, axis=-1) flow /= l.reshape(shp+(1,))