Skip to content

Commit

Permalink
Use sorting methods in N5Client
Browse files Browse the repository at this point in the history
minnerbe committed Nov 30, 2024
1 parent f019fbd commit f90d324
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -533,6 +533,7 @@ public static List<Grid.Block> buildGridBlocks(final int tileWidth,
Grid.create(longDimensions, gridBlockSize, blockSize).stream()
.filter(block -> minZToRender == null || block.max(2) + 1 >= minZToRender)
.collect(Collectors.toList());
Grid.reorderLayerWise(blockList);

LOG.info("buildGridBlocks: returning {} blocks with size {}",
blockList.size(), Arrays.toString(gridBlockSize));
@@ -687,6 +688,7 @@ private static void save2DRenderStack(final JavaSparkContext sc,
};

final List<Grid.Block> grid = Grid.create(Arrays.copyOfRange(dimensions, 0, 2), gridBlockSize, blockSize);
Grid.reorderFullGrid(grid);
final JavaRDD<Grid.Block> rdd = sc.parallelize(grid);

final Broadcast<ImageProcessorCacheSpec> broadcastCacheSpec = sc.broadcast(cacheSpec);

0 comments on commit f90d324

Please sign in to comment.