@@ -365,7 +365,8 @@ else if ( storageType == StorageFormat.N5 || storageType == StorageFormat.ZARR )
365365
366366 // extract the resolution of the s0 export
367367 // TODO: this is inaccurate, we should actually estimate it from the final transformn that is applied
368- final VoxelDimensions vx = dataGlobal .getSequenceDescription ().getViewSetupsOrdered ().iterator ().next ().getVoxelSize ();
368+ // TODO: this is a hack (returns 1,1,1) so the export downsampling pyramid is working
369+ final VoxelDimensions vx = new FinalVoxelDimensions ( "micrometer" , new double [] { 1 , 1 , 1 } );// dataGlobal.getSequenceDescription().getViewSetupsOrdered().iterator().next().getVoxelSize();
369370 final double [] resolutionS0 = OMEZarrAttibutes .getResolutionS0 ( vx , anisotropyFactor , Double .NaN );
370371
371372 System .out .println ( "Resolution of level 0: " + Util .printCoordinates ( resolutionS0 ) + " " + "micrometer" ); //vx.unit() might not be OME-ZARR compatiblevx.unit() );
@@ -411,7 +412,8 @@ else if ( storageType == StorageFormat.ZARR )
411412
412413 // extract the resolution of the s0 export
413414 // TODO: this is inaccurate, we should actually estimate it from the final transformn that is applied
414- final VoxelDimensions vx = dataGlobal .getSequenceDescription ().getViewSetupsOrdered ().iterator ().next ().getVoxelSize ();
415+ // TODO: this is a hack (returns 1,1,1) so the export downsampling pyramid is working
416+ final VoxelDimensions vx = new FinalVoxelDimensions ( "micrometer" , new double [] { 1 , 1 , 1 } );// dataGlobal.getSequenceDescription().getViewSetupsOrdered().iterator().next().getVoxelSize();
415417 final double [] resolutionS0 = OMEZarrAttibutes .getResolutionS0 ( vx , anisotropyFactor , Double .NaN );
416418
417419 System .out .println ( "Resolution of level 0: " + Util .printCoordinates ( resolutionS0 ) + " " + "m" ); //vx.unit() might not be OME-ZARR compatiblevx.unit() );
0 commit comments