Skip to content

Commit

Permalink
OIRReader: Update zct block indexing for modulo C
Browse files Browse the repository at this point in the history
  • Loading branch information
dgault authored Jul 16, 2024
1 parent 7fbe98d commit 0bd9fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/formats-gpl/src/loci/formats/in/OIRReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h)
lastChannel = zct[1];

// Gets all the PixelBlock potentially contained within c, z and t
PixelBlock[] blocks = cztToPixelBlocks.get(new CZTKey(zct[1], zct[0], zct[2]));
PixelBlock[] blocks = cztToPixelBlocks.get(new CZTKey((zct[1] % channels.size()), zct[0], zct[2]));

if ((blocks == null) || (blocks.length == 0)) {
LOGGER.warn("No pixel blocks for plane #{}", no);
Expand Down

0 comments on commit 0bd9fa9

Please sign in to comment.