@Override public short[][] get16BitLookupTable() throws FormatException, IOException { return reader.get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { return reader.get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (callLegacyReader()) { return legacyReader.get16BitLookupTable(); } return nativeReader.get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (callLegacyReader()) { return legacyReader.get16BitLookupTable(); } return nativeReader.get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (!isFilled()) return reader.get16BitLookupTable(); return null; }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (info[series][lastPlane] == null || info[series][lastPlane].reader == null || info[series][lastPlane].id == null) { return null; } info[series][lastPlane].reader.setId(info[series][lastPlane].id); return info[series][lastPlane].reader.get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (!isFilled()) return reader.get16BitLookupTable(); return null; }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { if (info[series][lastPlane] == null || info[series][lastPlane].reader == null || info[series][lastPlane].id == null) { return null; } info[series][lastPlane].reader.setId(info[series][lastPlane].id); return info[series][lastPlane].reader.get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { return getReader().get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { return getReader().get16BitLookupTable(); }
/** Gets the number of color components in the lookup table. */ private int getLookupTableComponentCount() throws FormatException, IOException { byte[][] lut8 = reader.get8BitLookupTable(); if (lut8 != null) return lut8.length; short[][] lut16 = reader.get16BitLookupTable(); if (lut16 != null) return lut16.length; lut8 = reader.get8BitLookupTable(); if (lut8 != null) return lut8.length; lut16 = reader.get16BitLookupTable(); if (lut16 != null) return lut16.length; return 0; // LUTs are missing }
/** Gets the number of color components in the lookup table. */ private int getLookupTableComponentCount() throws FormatException, IOException { byte[][] lut8 = reader.get8BitLookupTable(); if (lut8 != null) return lut8.length; short[][] lut16 = reader.get16BitLookupTable(); if (lut16 != null) return lut16.length; lut8 = reader.get8BitLookupTable(); if (lut8 != null) return lut8.length; lut16 = reader.get16BitLookupTable(); if (lut16 != null) return lut16.length; return 0; // LUTs are missing }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); return noStitch ? reader.get16BitLookupTable() : getReader(getCoreIndex(), 0).get16BitLookupTable(); }
@Override public short[][] get16BitLookupTable() throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); return noStitch ? reader.get16BitLookupTable() : getReader(getCoreIndex(), 0).get16BitLookupTable(); }
/** * Use the lookup table from the reader (if present) to set * the color model in the given writer * @param writer the {@link loci.formats.IFormatWriter} on which to set a color model * @throws FormatException * @throws IOException */ private void applyLUT(IFormatWriter writer) throws FormatException, IOException { if (lookup) { byte[][] lut = reader.get8BitLookupTable(); if (lut != null) { IndexColorModel model = new IndexColorModel(8, lut[0].length, lut[0], lut[1], lut[2]); writer.setColorModel(model); } else { short[][] lut16 = reader.get16BitLookupTable(); if (lut16 != null) { Index16ColorModel model = new Index16ColorModel(16, lut16[0].length, lut16, reader.isLittleEndian()); writer.setColorModel(model); } } } }
if (reader.get16BitLookupTable() != null) { short[][] shortTable = reader.get16BitLookupTable();
short[][] s = ImageTools.indexedToRGB(reader.get16BitLookupTable(), pix, isLittleEndian());
short[][] s = ImageTools.indexedToRGB(reader.get16BitLookupTable(), pix, isLittleEndian());
pixelType == FormatTools.INT16) short[][] table = r.get16BitLookupTable(); if (table != null && table.length > 0 && table[0] != null) { model = new Index16ColorModel(16, table[0].length, table,
pixelType == FormatTools.INT16) short[][] table = r.get16BitLookupTable(); if (table != null && table.length > 0 && table[0] != null) { model = new Index16ColorModel(16, table[0].length, table,