From 26b3ffed3d87035899f3fbee0381c2e778e746c9 Mon Sep 17 00:00:00 2001 From: Jean-Yves Tinevez Date: Tue, 7 May 2024 17:27:58 +0200 Subject: [PATCH] Fix export label method call with the 2D + Z detector. --- src/main/java/fiji/plugin/trackmate/detection/Process2DZ.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fiji/plugin/trackmate/detection/Process2DZ.java b/src/main/java/fiji/plugin/trackmate/detection/Process2DZ.java index 0e9c0d5da..5d414d654 100644 --- a/src/main/java/fiji/plugin/trackmate/detection/Process2DZ.java +++ b/src/main/java/fiji/plugin/trackmate/detection/Process2DZ.java @@ -34,6 +34,7 @@ import fiji.plugin.trackmate.TrackMate; import fiji.plugin.trackmate.TrackModel; import fiji.plugin.trackmate.action.LabelImgExporter; +import fiji.plugin.trackmate.action.LabelImgExporter.LabelIdPainting; import fiji.plugin.trackmate.util.TMUtils; import ij.ImagePlus; import net.imagej.ImgPlus; @@ -191,7 +192,7 @@ public boolean process() } // Get 2D+T masks - final ImagePlus lblImp = LabelImgExporter.createLabelImagePlus( trackmate, false, true, false ); + final ImagePlus lblImp = LabelImgExporter.createLabelImagePlus( trackmate, false, true, LabelIdPainting.LABEL_IS_TRACK_ID ); /* * Exposes tracked labels as a 3D image and segment them again with