From 5f9d8db0b867c92a5f493f56a4b8a4d8f59f41c4 Mon Sep 17 00:00:00 2001
From: schlda00 <kai.schleicher@unibas.ch>
Date: Tue, 22 Apr 2025 14:20:37 +0200
Subject: [PATCH] Change to work with older versions of TrackMate

---
 2d_spots_in_fibers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index d82f49e..6daff6e 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -198,8 +198,8 @@ def run_trackmate_dog_spot_detector(imp, spot_diameter, quality_threshold):
 
     exportSpotsAsDots = True
     exportTracksOnly = False
-    labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_INDEX_MOVIE_UNIQUE
-    label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, labelIdPainting)
+    # labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_INDEX_MOVIE_UNIQUE
+    label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, False) # labelIdPainting (needed in a future verion of TM)
     label_imp.setCalibration(cal)
     imp.close() 
 
-- 
GitLab