Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ docs/api/*
docs/_build/*
cover/*
MANIFEST
AGENTS.md
11 changes: 10 additions & 1 deletion src/imcflibs/imagej/trackmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ def cellpose_detector(
... optional_channel=0
... )
"""

dims = imageplus.getDimensions()
cal = imageplus.getCalibration()

if imageplus.getNSlices() > 1:
imageplus.setDimensions(dims[2], dims[4], dims[3])

settings = Settings(imageplus)

settings.detectorFactory = CellposeDetectorFactory()
Expand All @@ -94,10 +101,12 @@ def cellpose_detector(
return

settings.detectorSettings["CELLPOSE_MODEL"] = selected_model
settings.detectorSettings["CELL_DIAMETER"] = obj_diameter
settings.detectorSettings["CELL_DIAMETER"] = Double(obj_diameter)
settings.detectorSettings["USE_GPU"] = use_gpu
settings.detectorSettings["SIMPLIFY_CONTOURS"] = simplify_contours

imageplus.setDimensions(dims[2], dims[3], dims[4])

return settings


Expand Down
Loading