/** * Short-cut in the FS case where we know that we are dealing with a FS-lite * file, and want to retrieve the actual file as opposed to a pyramid or anything * else. This may be used to access the original metadata. * @throws FormatException * @throws IOException */ public IFormatReader getBfReader(Pixels pixels) throws FormatException, IOException { // from getPixelBuffer final String originalFilePath = getOriginalFilePath(pixels); final int series = getSeries(pixels); final IFormatReader reader = createBfReader(); reader.setId(originalFilePath); // Called by BfPixelsBuffer elsewhere. reader.setSeries(series); return reader; }
public PixelBuffer _getPixelBuffer(Pixels pixels, boolean write) final String originalFilePath = getOriginalFilePath(pixels); final boolean requirePyramid = requiresPixelsPyramid(pixels); final String pixelsFilePath = getPixelsPath(pixels.getId());
final String pixelsPyramidFilePath = pixelsFilePath + PYRAMID_SUFFIX; final File pixelsPyramidFile = new File(pixelsPyramidFilePath); final String originalFilePath = getOriginalFilePath(pixels); final boolean requirePyramid = requiresPixelsPyramid(pixels);