/** * Returns whether a pyramid should be used for the given {@link Pixels}. * This usually implies that this is a "Big image" and therefore will * need tiling. * * @see PixelsService#requiresPixelsPyramid(Pixels) * @param pix the pixels * @return {@code true} if a pyramid should be used, {@code false} * otherwise */ public boolean requiresPixelsPyramid(Pixels pix) { return data.requiresPixelsPyramid(pix); }
@RolesAllowed("user") public boolean requiresPixelsPyramid() { rwl.writeLock().lock(); try { errorIfInvalidState(); return pixDataSrv.requiresPixelsPyramid(pixelsObj); } finally { rwl.writeLock().unlock(); } }
private boolean requiresPyramid(ServiceFactory sf, long id) { ome.model.core.Pixels _p = sf.getQueryService().get(ome.model.core.Pixels.class, id); return pixelsService.requiresPixelsPyramid(_p); }
@RolesAllowed("user") public synchronized boolean requiresPixelsPyramid() { errorIfNotLoaded(); return dataService.requiresPixelsPyramid(pixelsInstance); }
public PixelBuffer _getPixelBuffer(Pixels pixels, boolean write) final boolean requirePyramid = requiresPixelsPyramid(pixels); final String pixelsFilePath = getPixelsPath(pixels.getId()); final File pixelsFile = new File(pixelsFilePath);
final File pixelsPyramidFile = new File(pixelsPyramidFilePath); final String originalFilePath = getOriginalFilePath(pixels); final boolean requirePyramid = requiresPixelsPyramid(pixels);