From 3ee3a7b015766453448fe5363493c509f0f1dd7a Mon Sep 17 00:00:00 2001 From: tpietzsch Date: Fri, 5 Apr 2024 20:11:37 +0200 Subject: [PATCH] Addapt API changes introduced by https://github.com/imglib/imglib2-roi/pull/71 --- src/main/java/fiji/plugin/trackmate/detection/MaskUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/fiji/plugin/trackmate/detection/MaskUtils.java b/src/main/java/fiji/plugin/trackmate/detection/MaskUtils.java index 53cf70fd8..2786afec3 100644 --- a/src/main/java/fiji/plugin/trackmate/detection/MaskUtils.java +++ b/src/main/java/fiji/plugin/trackmate/detection/MaskUtils.java @@ -33,6 +33,7 @@ import ij.gui.PolygonRoi; import ij.measure.Measurements; import ij.process.FloatPolygon; +import net.imglib2.Cursor; import net.imglib2.Interval; import net.imglib2.RandomAccess; import net.imglib2.RandomAccessible; @@ -280,7 +281,7 @@ public static < R extends IntegerType< R > > List< Spot > fromLabeling( while ( iterator.hasNext() ) { final LabelRegion< Integer > region = iterator.next(); - final LabelRegionCursor cursor = region.localizingCursor(); + final Cursor< Void > cursor = region.inside().localizingCursor(); final int[] cursorPos = new int[ labeling.numDimensions() ]; final long[] sum = new long[ 3 ]; while ( cursor.hasNext() ) @@ -358,7 +359,7 @@ public static < T extends RealType< T >, R extends RealType< R > > List< Spot > while ( iterator.hasNext() ) { final LabelRegion< Integer > region = iterator.next(); - final LabelRegionCursor cursor = region.localizingCursor(); + final Cursor< Void > cursor = region.inside().localizingCursor(); final int[] cursorPos = new int[ labeling.numDimensions() ]; final long[] sum = new long[ 3 ]; double quality = Double.NEGATIVE_INFINITY;