Skip to content

Commit

Permalink
Addapt API changes introduced by imglib/imglib2-roi#71
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Aug 28, 2024
1 parent 0cec5cb commit 3ee3a7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/fiji/plugin/trackmate/detection/MaskUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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() )
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3ee3a7b

Please sign in to comment.