diff --git a/src/main/java/com/glencoesoftware/bioformats2raw/MCDReader.java b/src/main/java/com/glencoesoftware/bioformats2raw/MCDReader.java index 466fbe6..eec3891 100644 --- a/src/main/java/com/glencoesoftware/bioformats2raw/MCDReader.java +++ b/src/main/java/com/glencoesoftware/bioformats2raw/MCDReader.java @@ -84,7 +84,7 @@ public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) // channels are stored interleaved, so reading requires // a lot of skipping through the pixel data block - in.skipBytes(bpp * no); + in.skipBytes(bpp * getReversePlaneIndex(no)); int skip = bpp * (getImageCount() - 1); in.skipBytes(y * (skip + bpp) * getSizeX()); @@ -258,6 +258,8 @@ protected void initFile(String id) throws FormatException, IOException { } for (int a=0; a