Skip to content

Commit 4f89cbe

Browse files
committed
Change to more recent call for creating label image
1 parent d465b4b commit 4f89cbe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/imcflibs/imagej/trackmate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
from fiji.plugin.trackmate import Logger, Model, SelectionModel, Settings, TrackMate
1010
from fiji.plugin.trackmate.action import LabelImgExporter
11+
from fiji.plugin.trackmate.action.LabelImgExporter import LabelIdPainting
1112
from fiji.plugin.trackmate.cellpose import CellposeDetectorFactory
1213
from fiji.plugin.trackmate.cellpose.CellposeSettings import PretrainedModel
1314
from fiji.plugin.trackmate.detection import LogDetectorFactory
1415
from fiji.plugin.trackmate.features import FeatureFilter
1516
from fiji.plugin.trackmate.stardist import StarDistDetectorFactory
1617
from fiji.plugin.trackmate.tracking.jaqaman import SparseLAPTrackerFactory
17-
1818
from ij import IJ
19-
2019
from java.lang import Double
2120

2221
from .. import pathtools
@@ -376,9 +375,10 @@ def run_trackmate(
376375

377376
exportSpotsAsDots = False
378377
exportTracksOnly = False
378+
labelIdPainting = LabelIdPainting.LABEL_IS_TRACK_ID
379379
# implus2.close()
380380
label_imp = LabelImgExporter.createLabelImagePlus(
381-
trackmate, exportSpotsAsDots, exportTracksOnly, False
381+
trackmate, exportSpotsAsDots, exportTracksOnly, labelIdPainting
382382
)
383383
label_imp.setCalibration(cal)
384384
label_imp.setDimensions(dims[2], dims[3], dims[4])

0 commit comments

Comments
 (0)