From f5cb42dc458744acc6b1bbdc997032a73513bf88 Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Mon, 2 Dec 2024 08:56:17 -0600 Subject: [PATCH] Fix Z index mapping --- .../java/com/glencoesoftware/omero/zarr/ZarrPixelBuffer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/glencoesoftware/omero/zarr/ZarrPixelBuffer.java b/src/main/java/com/glencoesoftware/omero/zarr/ZarrPixelBuffer.java index d04d121..763bebc 100644 --- a/src/main/java/com/glencoesoftware/omero/zarr/ZarrPixelBuffer.java +++ b/src/main/java/com/glencoesoftware/omero/zarr/ZarrPixelBuffer.java @@ -831,9 +831,8 @@ public void setResolutionLevel(int resolutionLevel) { // if no Z downsampling, this is just an identity map int fullResZ = fullResolutionArray.getShape()[2]; int arrayZ = array.getShape()[2]; - int zStep = fullResZ / arrayZ; for (int z=0; z