Skip to content

Commit

Permalink
Fix Z index mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Dec 2, 2024
1 parent ae60b7f commit f5cb42d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<fullResZ; z++) {
zIndexMap.put(z, z * zStep);
zIndexMap.put(z, Math.round(z * arrayZ / fullResZ));
}
} catch (Exception e) {
// FIXME: Throw the right exception
Expand Down

0 comments on commit f5cb42d

Please sign in to comment.