From a444760caf935434a38ab9e3d7c4d08556ef5769 Mon Sep 17 00:00:00 2001 From: Stephan Preibisch Date: Sat, 7 Sep 2024 16:21:29 -0400 Subject: [PATCH] one more little bug --- .../net/preibisch/mvrecon/fiji/plugin/resave/Resave_N5.java | 3 ++- .../net/preibisch/mvrecon/process/resave/N5ResaveTools.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/preibisch/mvrecon/fiji/plugin/resave/Resave_N5.java b/src/main/java/net/preibisch/mvrecon/fiji/plugin/resave/Resave_N5.java index 9b9ff0ad..f1ca3fbd 100644 --- a/src/main/java/net/preibisch/mvrecon/fiji/plugin/resave/Resave_N5.java +++ b/src/main/java/net/preibisch/mvrecon/fiji/plugin/resave/Resave_N5.java @@ -190,7 +190,8 @@ else if ( URITools.isS3( n5Params.n5URI ) || URITools.isGC( n5Params.n5URI ) )*/ final int[] ds = N5ResaveTools.computeRelativeDownsampling( downsamplings, s ); IOFunctions.println( "Downsampling: " + Util.printCoordinates( downsamplings[ s ] ) + " with relative downsampling of " + Util.printCoordinates( ds )); - final ArrayList allBlocks = N5ResaveTools.prepareDownsampling( vidsToResave, n5Writer, level, blockSize, ds, downsamplings[ s ], compression ); + final ArrayList allBlocks = + N5ResaveTools.prepareDownsampling( vidsToResave, n5Writer, level, downsamplings[ s ], ds, blockSize, compression ); time = System.currentTimeMillis(); diff --git a/src/main/java/net/preibisch/mvrecon/process/resave/N5ResaveTools.java b/src/main/java/net/preibisch/mvrecon/process/resave/N5ResaveTools.java index 886724ce..c74f8f1b 100644 --- a/src/main/java/net/preibisch/mvrecon/process/resave/N5ResaveTools.java +++ b/src/main/java/net/preibisch/mvrecon/process/resave/N5ResaveTools.java @@ -1,6 +1,7 @@ package net.preibisch.mvrecon.process.resave; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; @@ -131,6 +132,10 @@ public static ArrayList prepareDownsampling( // all blocks (a.k.a. grids) across all ViewId's final ArrayList allBlocks = new ArrayList<>(); + System.out.println( "relativeDownsampling: " + Arrays.toString( relativeDownsampling )); + System.out.println( "absoluteDownsampling: " + Arrays.toString( absoluteDownsampling )); + System.out.println( "blockSize: " + Arrays.toString( blockSize )); + // adjust dimensions for ( final ViewId viewId : viewIds ) {