From 34beb9c2f2132d25faa9a84327fa778e90534f2b Mon Sep 17 00:00:00 2001
From: schlda00 <kai.schleicher@unibas.ch>
Date: Tue, 15 Apr 2025 16:40:02 +0200
Subject: [PATCH] Change spot label ID painting method

---
 2d_spots_in_fibers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index 736d494..4f51642 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -201,7 +201,7 @@ def run_trackmate_dog_spot_detector(imp, spot_diameter, quality_threshold):
 
     exportSpotsAsDots = True
     exportTracksOnly = False
-    labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_SPOT_ID
+    labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_INDEX_MOVIE_UNIQUE
     label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, labelIdPainting)
     label_imp.setCalibration(cal)
     imp.close() 
-- 
GitLab