public final class TiffPyramidReader extends Object implements AutoCloseable
TiffPyramidWriter (or any
Bio-Formats-style pyramidal OME-TIFF using SubIFDs), reconstructing:
PlaneLocation for every full-resolution plane (level 0) and its SubIFD pyramid;
and(z,c,t) coordinate to its PlaneLocation, from the
OME-XML TiffData records.The open file channel is retained so pixels can be read on demand; call close() when
finished.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
PlaneLocation |
location(int z,
int c,
int t)
Location of the plane at (z,c,t), or null if that coordinate has no stored plane.
|
int |
numLevels() |
static TiffPyramidReader |
open(Path file) |
ByteOrder |
order() |
Object |
readLevel(PlaneLocation loc,
int level,
boolean deflate)
Read one pyramid level of a plane into a primitive pixel array.
|
Object |
readRegion(PlaneLocation loc,
int level,
long x,
long y,
int w,
int h,
boolean deflate)
Read an arbitrary region of a tiled plane's level, touching only the covering tiles.
|
Object |
readTile(PlaneLocation loc,
int level,
int tileCol,
int tileRow,
boolean deflate)
Read one tile (full
tileWidth*tileHeight) of a tiled plane's level. |
int |
sizeC() |
int |
sizeT() |
int |
sizeX() |
int |
sizeY() |
int |
sizeZ() |
PixelType |
type() |
static String |
zctKey(int z,
int c,
int t) |
public ByteOrder order()
public PixelType type()
public int sizeX()
public int sizeY()
public int sizeZ()
public int sizeC()
public int sizeT()
public int numLevels()
public PlaneLocation location(int z, int c, int t)
public Object readLevel(PlaneLocation loc, int level, boolean deflate) throws IOException
IOExceptionpublic Object readTile(PlaneLocation loc, int level, int tileCol, int tileRow, boolean deflate) throws IOException
tileWidth*tileHeight) of a tiled plane's level.IOExceptionpublic Object readRegion(PlaneLocation loc, int level, long x, long y, int w, int h, boolean deflate) throws IOException
IOExceptionpublic void close()
close in interface AutoCloseablepublic static String zctKey(int z, int c, int t)
public static TiffPyramidReader open(Path file) throws IOException
IOExceptionCopyright © 2026. All rights reserved.