Package ome.services.roi
Class PixelData
- java.lang.Object
-
- ome.services.roi.PixelData
-
public class PixelData extends java.lang.Object
Strategy 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 double
get(ome.io.nio.PixelBuffer buf, int x, int y, int z, int c, int t)
ome.io.nio.PixelBuffer
getBuffer(long pix)
ome.util.PixelData
getPlane(ome.io.nio.PixelBuffer buf, int z, int c, int t)
Returns thePixelData
for plane given its z, c and t as well as aPixelBuffer
boolean
requiresPixelsPyramid(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 thePixelData
for plane given its z, c and t as well as aPixelBuffer
- Parameters:
buf
- thePixelBuffer
z
- 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:
true
if a pyramid should be used,false
otherwise- See Also:
PixelsService.requiresPixelsPyramid(Pixels)
-
-