Package ome.services.roi
Class PixelData
- java.lang.Object
-
- ome.services.roi.PixelData
-
public class PixelData extends java.lang.ObjectStrategy for loading and optionally caching pixel data.- Since:
- Beta4.1
-
-
Constructor Summary
Constructors Constructor Description PixelData(ome.io.nio.PixelsService data, ome.api.IPixels meta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleget(ome.io.nio.PixelBuffer buf, int x, int y, int z, int c, int t)ome.io.nio.PixelBuffergetBuffer(long pix)ome.util.PixelDatagetPlane(ome.io.nio.PixelBuffer buf, int z, int c, int t)Returns thePixelDatafor plane given its z, c and t as well as aPixelBufferbooleanrequiresPixelsPyramid(ome.model.core.Pixels pix)Returns whether a pyramid should be used for the givenPixels.
-
-
-
Method Detail
-
getBuffer
public ome.io.nio.PixelBuffer getBuffer(long pix)
-
get
public double get(ome.io.nio.PixelBuffer buf, int x, int y, int z, int c, int t)
-
getPlane
public ome.util.PixelData getPlane(ome.io.nio.PixelBuffer buf, int z, int c, int t)Returns thePixelDatafor plane given its z, c and t as well as aPixelBuffer- Parameters:
buf- thePixelBufferz- the Zc- the Ct- the T- Returns:
- the ome.util.PixelData for the plane
-
requiresPixelsPyramid
public boolean requiresPixelsPyramid(ome.model.core.Pixels pix)
Returns whether a pyramid should be used for the givenPixels. This usually implies that this is a "Big image" and therefore will need tiling.- Parameters:
pix- the pixels- Returns:
trueif a pyramid should be used,falseotherwise- See Also:
PixelsService.requiresPixelsPyramid(Pixels)
-
-