@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { byte[] buf = DataTools.allocate(w, h, FormatTools.getBytesPerPixel(getPixelType())); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { byte[] buf = DataTools.allocate(w, h, FormatTools.getBytesPerPixel(getPixelType())); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { byte[] buf = DataTools.allocate(w, h, getRGBChannelCount(), FormatTools.getBytesPerPixel(getPixelType())); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] buf = DataTools.allocate(w, h, ch, bpp); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] newBuffer = DataTools.allocate(w, h, ch, bpp); return openBytes(no, newBuffer, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] buf = DataTools.allocate(w, h, ch, bpp); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] newBuffer = DataTools.allocate(w, h, ch, bpp); return openBytes(no, newBuffer, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { byte[] buf = DataTools.allocate(w, h, getRGBChannelCount(), FormatTools.getBytesPerPixel(getPixelType())); return openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] newBuffer = DataTools.allocate(w, h, ch, bpp); return openBytes(no, newBuffer, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] newBuffer = DataTools.allocate(w, h, ch, bpp); return openBytes(no, newBuffer, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int ch = getRGBChannelCount(); int bpp = FormatTools.getBytesPerPixel(getPixelType()); byte[] newBuffer; try { newBuffer = DataTools.allocate(w, h, ch, bpp); } catch (IllegalArgumentException e) { throw new FormatException("Image plane too large. Only 2GB of data can " + "be extracted at one time. You can work around the problem by opening " + "the plane in tiles; for further details, see: " + "https://docs.openmicroscopy.org/bio-formats/" + FormatTools.VERSION + "/about/bug-reporting.html#common-issues-to-check", e); } return openBytes(no, newBuffer, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int ch = getRGBChannelCount(); int bpp = FormatTools.getBytesPerPixel(getPixelType()); byte[] newBuffer; try { newBuffer = DataTools.allocate(w, h, ch, bpp); } catch (IllegalArgumentException e) { throw new FormatException("Image plane too large. Only 2GB of data can " + "be extracted at one time. You can work around the problem by opening " + "the plane in tiles; for further details, see: " + "https://docs.openmicroscopy.org/bio-formats/" + FormatTools.VERSION + "/about/bug-reporting.html#common-issues-to-check", e); } return openBytes(no, newBuffer, x, y, w, h); }