/** * @see loci.formats.IFormatReader#openBytes(int, byte[], int, int, int, int) */ @Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); if (plane == null) { plane = new byte[FormatTools.getPlaneSize(this)]; ImageTools.interpolate( pix, plane, COLOR_MAP, getSizeX(), getSizeY(), isLittleEndian()); } try (RandomAccessInputStream s = new RandomAccessInputStream(plane)) { readPlane(s, x, y, w, h, buf); } return buf; }
/** * @see loci.formats.IFormatReader#openBytes(int, byte[], int, int, int, int) */ @Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.checkPlaneParameters(this, no, buf.length, x, y, w, h); if (plane == null) { plane = new byte[FormatTools.getPlaneSize(this)]; ImageTools.interpolate( pix, plane, COLOR_MAP, getSizeX(), getSizeY(), isLittleEndian()); } try (RandomAccessInputStream s = new RandomAccessInputStream(plane)) { readPlane(s, x, y, w, h, buf); } return buf; }
ImageTools.interpolate(pix, buf, colorMap, getSizeX(), getSizeY(), isLittleEndian());
ImageTools.interpolate(pix, buf, colorMap, getSizeX(), getSizeY(), isLittleEndian());
ImageTools.interpolate(pix, lastPlane, colorMap, getSizeX(), getSizeY(), isLittleEndian()); lastIndex = no;
ImageTools.interpolate(pix, lastPlane, colorMap, getSizeX(), getSizeY(), isLittleEndian()); lastIndex = no;
fullImage = ImageTools.interpolate(s, fullImage, colorMap, getSizeX(), getSizeY(), isLittleEndian());
fullImage = ImageTools.interpolate(s, fullImage, colorMap, getSizeX(), getSizeY(), isLittleEndian());