Skip to content

Commit

Permalink
region labelling to remove small parts for precomputed
Browse files Browse the repository at this point in the history
  • Loading branch information
guiwitz committed Nov 3, 2023
1 parent bfdd935 commit 9be174e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions morphodynamics/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def tracking(regions, location=None, seg_type="farid"):
location: 1d array, optional
position vector
seg_type: str
type of segmentation used, currently 'farid', 'cellpose', 'ilastik' or 'conv_paint'
type of segmentation used, currently
'farid', 'cellpose', 'ilastik', 'conv_paint' or 'precomputed'
Returns
-------
Expand All @@ -101,7 +102,7 @@ def tracking(regions, location=None, seg_type="farid"):
"""

if seg_type == "ilastik":
if seg_type in ["ilastik", "precomputed"]:
regions = label(regions == 1)
# number of regions
nr = np.max(regions)
Expand Down

0 comments on commit 9be174e

Please sign in to comment.