@Override public String getDimensionOrder() { FormatTools.assertId(getCurrentFile(), true, 2); String order = super.getDimensionOrder(); if (reader.isRGB() && !reader.isIndexed()) { String newOrder = "XYC"; if (order.indexOf('Z') > order.indexOf('T')) newOrder += "TZ"; else newOrder += "ZT"; return newOrder; } return order; }
@Override public String getDimensionOrder() { FormatTools.assertId(getCurrentFile(), true, 2); String order = super.getDimensionOrder(); if (reader.isRGB() && !reader.isIndexed()) { String newOrder = "XYC"; if (order.indexOf('Z') > order.indexOf('T')) newOrder += "TZ"; else newOrder += "ZT"; return newOrder; } return order; }
@Override public boolean isRGB() { FormatTools.assertId(getCurrentFile(), true, 2); return isIndexed() && !isFalseColor() && getSizeC() > 1; }
@Override public boolean isRGB() { FormatTools.assertId(getCurrentFile(), true, 2); return isIndexed() && !isFalseColor() && getSizeC() > 1; }
@Override public int getImageCount() { FormatTools.assertId(getCurrentFile(), true, 2); return (reader.isRGB() && !reader.isIndexed()) ? reader.getRGBChannelCount() * reader.getImageCount() : reader.getImageCount(); }
@Override public int getImageCount() { FormatTools.assertId(getCurrentFile(), true, 2); return (reader.isRGB() && !reader.isIndexed()) ? reader.getRGBChannelCount() * reader.getImageCount() : reader.getImageCount(); }
@Override public byte[] openThumbBytes(int no) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); int source = getOriginalIndex(no); byte[] thumb = reader.openThumbBytes(source); int c = getSizeC() / reader.getEffectiveSizeC(); int channel = no % c; int bpp = FormatTools.getBytesPerPixel(getPixelType()); return ImageTools.splitChannels(thumb, channel, c, bpp, false, reader.isInterleaved()); }
@Override public byte[] openThumbBytes(int no) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); int source = getOriginalIndex(no); byte[] thumb = reader.openThumbBytes(source); int c = getSizeC() / reader.getEffectiveSizeC(); int channel = no % c; int bpp = FormatTools.getBytesPerPixel(getPixelType()); return ImageTools.splitChannels(thumb, channel, c, bpp, false, reader.isInterleaved()); }
throws FormatException, IOException FormatTools.assertId(getCurrentFile(), true, 2); FormatTools.checkPlaneNumber(this, no);
throws FormatException, IOException FormatTools.assertId(getCurrentFile(), true, 2); FormatTools.checkPlaneNumber(this, no);