@Override public void close() throws IOException { log.debug("close(" + currentId + ")"); super.close(); }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (tiffReader != null) tiffReader.close(fileOnly); if (!fileOnly) { tiffInfo = null; tiffReader = null; planes = null; directoryCache.clear(); } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (tiffReader != null) tiffReader.close(fileOnly); if (!fileOnly) { positions = null; start = 0; spim = false; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (reader != null) { reader.close(); } reader = null; planes = null; metadataFiles.clear(); } }
public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (reader != null) { reader.close(); } reader = null; metadataFiles.clear(); planes.clear(); nFields = 0; acquisitionDate = null; } }
public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (reader != null) { reader.close(); } reader = null; metadataFiles.clear(); planes.clear(); nFields = 0; acquisitionDate = null; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (reader != null) reader.close(fileOnly); if (!fileOnly) { tiffs = null; reader = null; metadataFiles = null; tileWidth = null; tileHeight = null; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (tiffReader != null) tiffReader.close(fileOnly); if (!fileOnly) { tiffInfo = null; tiffReader = null; planes = null; directoryCache.clear(); } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (tiffReader != null) tiffReader.close(fileOnly); if (!fileOnly) { positions = null; start = 0; spim = false; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (reader != null) { reader.close(); } reader = null; planes = null; metadataFiles.clear(); } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (reader != null) reader.close(fileOnly); if (!fileOnly) { tiffs = null; reader = null; metadataFiles = null; tileWidth = null; tileHeight = null; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (tiff != null) tiff.close(fileOnly); if (!fileOnly) { tiff = null; allFiles = null; files = null; details = sliceSpace = null; isTiff = true; pixelSizeX = pixelSizeY = 1f; finishTime = startTime = null; originX = originY = originZ = 0f; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (delegate != null) delegate.close(fileOnly); if (!fileOnly) { delegate = null; date = null; magnification = null; immersion = null; cameraType = null; cameraName = null; binning = null; exposureTimes = null; scaling = 0d; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (tiff != null) tiff.close(fileOnly); if (!fileOnly) { tiff = null; allFiles = null; files = null; details = sliceSpace = null; isTiff = true; pixelSizeX = pixelSizeY = 1f; finishTime = startTime = null; originX = originY = originZ = 0f; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (delegate != null) delegate.close(fileOnly); if (!fileOnly) { delegate = null; date = null; magnification = null; immersion = null; cameraType = null; cameraName = null; binning = null; exposureTimes = null; scaling = 0d; } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { cNames = null; pixelSizeT = 1; pixelSizeX = pixelSizeY = pixelSizeZ = 0; if (readers != null) { for (MinimalTiffReader reader : readers) { if (reader != null) reader.close(); } } readers = null; files = null; lastFile = 0; channelColors.clear(); } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (readers != null) { for (MinimalTiffReader reader : readers) { if (reader != null) { reader.close(); } } } lastFile = 0; readers = null; files = null; channelNames.clear(); } }
@Override public void close(boolean fileOnly) throws IOException { super.close(fileOnly); if (!fileOnly) { if (readers != null) { for (MinimalTiffReader reader : readers) { if (reader != null) { reader.close(); } } } lastFile = 0; readers = null; files = null; channelNames.clear(); } }
/** * @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 (imageFiles[no] != null && new Location(imageFiles[no]).exists()) { Plane p = planes.get(no); tiffReader.setId(p.filename); tiffReader.openBytes(0, buf, x, y, w, h); tiffReader.close(); } else { LOGGER.warn("File for image #{} ({}) is missing.", no, imageFiles[no]); } return buf; }
private byte[] getTile(int well, int no, int row, int col, Region intersection) throws FormatException, IOException { intersection.x %= tileWidth; intersection.y %= tileHeight; int tileIndex = (no * tileRows + row) * tileCols + col; readers[well][tileIndex].setId(tiffs[well][tileIndex]); int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); int bufferSize = intersection.width * intersection.height * ch * bpp; if (cachedTileBuffer == null || cachedTileBuffer.length != bufferSize) { cachedTileBuffer = new byte[bufferSize]; } byte[] buf = readers[well][tileIndex].openBytes(0, cachedTileBuffer, intersection.x, intersection.y, intersection.width, intersection.height); readers[well][tileIndex].close(); return buf; }