From 0bd9fa9d49c765e7e0eef66dac775ac0bf817ac2 Mon Sep 17 00:00:00 2001 From: David Gault Date: Tue, 16 Jul 2024 13:58:34 +0100 Subject: [PATCH] OIRReader: Update zct block indexing for modulo C --- components/formats-gpl/src/loci/formats/in/OIRReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/formats-gpl/src/loci/formats/in/OIRReader.java b/components/formats-gpl/src/loci/formats/in/OIRReader.java index cda2e7f3cce..cb5b0883427 100644 --- a/components/formats-gpl/src/loci/formats/in/OIRReader.java +++ b/components/formats-gpl/src/loci/formats/in/OIRReader.java @@ -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);