Closed Squareys closed 9 years ago
Hi @tpietzsch !
I believe I found a bug in RectangleNeighborhoodCursor:
On a fresh shape.neighborhoodsSafe(img).localizingCursor() fwd() results in position [0, 0, 0], but jumpFwd(1) results in position [2, 0, 0].
shape.neighborhoodsSafe(img).localizingCursor()
fwd()
[0, 0, 0]
jumpFwd(1)
[2, 0, 0]
I wrote a simple test for this: here
When letting the cursor run through the entire img with .jumpFwd(1), an ArrayIndexOutOfBoundsException is thrown.
.jumpFwd(1)
ArrayIndexOutOfBoundsException
Greetings, Squareys
https://github.com/imglib/imglib2-algorithm/tree/fix-rectangle-jump
Does this work as expected?
Hi @tpietzsch !
I believe I found a bug in RectangleNeighborhoodCursor:
On a fresh
shape.neighborhoodsSafe(img).localizingCursor()
fwd()
results in position[0, 0, 0]
, butjumpFwd(1)
results in position[2, 0, 0]
.I wrote a simple test for this: here
When letting the cursor run through the entire img with
.jumpFwd(1)
, anArrayIndexOutOfBoundsException
is thrown.Greetings, Squareys