|
8 | 8 |
|
9 | 9 | from fiji.plugin.trackmate import Logger, Model, SelectionModel, Settings, TrackMate |
10 | 10 | from fiji.plugin.trackmate.action import LabelImgExporter |
| 11 | +from fiji.plugin.trackmate.action.LabelImgExporter import LabelIdPainting |
11 | 12 | from fiji.plugin.trackmate.cellpose import CellposeDetectorFactory |
12 | 13 | from fiji.plugin.trackmate.cellpose.CellposeSettings import PretrainedModel |
13 | 14 | from fiji.plugin.trackmate.detection import LogDetectorFactory |
14 | 15 | from fiji.plugin.trackmate.features import FeatureFilter |
15 | 16 | from fiji.plugin.trackmate.stardist import StarDistDetectorFactory |
16 | 17 | from fiji.plugin.trackmate.tracking.jaqaman import SparseLAPTrackerFactory |
17 | | - |
18 | 18 | from ij import IJ |
19 | | - |
20 | 19 | from java.lang import Double |
21 | 20 |
|
22 | 21 | from .. import pathtools |
@@ -347,7 +346,7 @@ def run_trackmate( |
347 | 346 |
|
348 | 347 | if not settings.trackerFactory: |
349 | 348 | # Create a Sparse LAP Tracker if no Tracker has been created |
350 | | - settings = sparseLAP_tracker(settings) |
| 349 | + settings = sparse_lap_tracker(settings) |
351 | 350 |
|
352 | 351 | ok = trackmate.checkInput() |
353 | 352 | if not ok: |
@@ -376,9 +375,10 @@ def run_trackmate( |
376 | 375 |
|
377 | 376 | exportSpotsAsDots = False |
378 | 377 | exportTracksOnly = False |
| 378 | + labelIdPainting = LabelIdPainting.LABEL_IS_TRACK_ID |
379 | 379 | # implus2.close() |
380 | 380 | label_imp = LabelImgExporter.createLabelImagePlus( |
381 | | - trackmate, exportSpotsAsDots, exportTracksOnly, False |
| 381 | + trackmate, exportSpotsAsDots, exportTracksOnly, labelIdPainting |
382 | 382 | ) |
383 | 383 | label_imp.setCalibration(cal) |
384 | 384 | label_imp.setDimensions(dims[2], dims[3], dims[4]) |
|
0 commit comments