Skip to content

Commit 6a4f6b8

Browse files
committed
Reduce size of data to speed-up test
For 4D, data is only about 1/40 of what it used to be.
1 parent 5a1d25a commit 6a4f6b8

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/main/java/net/imglib2/algorithm/fill/FloodFill.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,6 @@ public static < T, U > void fill(
201201
coordinates.add( seed.getLongPosition( d ) );
202202
}
203203

204-
// final TLongList[] coordinates = new TLongList[ n ];
205-
// for ( int d = 0; d < n; ++d )
206-
// {
207-
// coordinates[ d ] = new TLongArrayList();
208-
// coordinates[ d ].add( seed.getLongPosition( d ) );
209-
// }
210204
final int cleanupThreshold = n * CLEANUP_THRESHOLD;
211205

212206
final RandomAccessible< Neighborhood< Pair< T, U > > > neighborhood = shape.neighborhoodsRandomAccessible( paired );

src/test/java/net/imglib2/algorithm/fill/FloodFillTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class FloodFillTest
6161

6262
private static final int[] N_DIMS = { 1, 2, 3, 4 };
6363

64-
private static final int SIZE_OF_EACH_DIM = 60;
64+
private static final int SIZE_OF_EACH_DIM = 24;
6565

6666
private static < T extends IntegerType< T > > void runTest( final int nDim, final int sizeOfEachDim, final ImgFactory< T > imageFactory, final T t )
6767
{
@@ -187,8 +187,8 @@ public void runTests()
187187
{
188188
for ( final int nDim : N_DIMS )
189189
{
190-
runTestDeprecated( nDim, SIZE_OF_EACH_DIM, new ArrayImgFactory< LongType >(), new LongType() );
191-
runTest( nDim, SIZE_OF_EACH_DIM, new ArrayImgFactory< LongType >(), new LongType() );
190+
runTestDeprecated( nDim, SIZE_OF_EACH_DIM, new ArrayImgFactory<>(), new LongType() );
191+
runTest( nDim, SIZE_OF_EACH_DIM, new ArrayImgFactory<>(), new LongType() );
192192
}
193193
}
194194

0 commit comments

Comments
 (0)