public class ImageReader extends Object
Constructor and Description |
---|
ImageReader(FileInfo fi)
Constructs a new ImageReader using a FileInfo object to describe the file to be read.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
lzwUncompress(byte[] input)
Utility method for decoding an LZW-compressed image strip.
|
byte[] |
packBitsUncompress(byte[] input,
int expected)
Based on the Bio-Formats PackbitsCodec written by Melissa Linkert.
|
Object |
readPixels(InputStream in)
Reads the image from the InputStream and returns the pixel
array (byte, short, int or float).
|
Object |
readPixels(InputStream in,
long skipCount)
Skips the specified number of bytes, then reads an image and
returns the pixel array (byte, short, int or float).
|
Object |
readPixels(String url)
Reads the image from a URL and returns the pixel array (byte,
short, int or float).
|
byte[] |
zipUncompress(byte[] input)
TIFF Adobe ZIP support contributed by Jason Newton.
|
public Object readPixels(InputStream in)
public Object readPixels(InputStream in, long skipCount)
public Object readPixels(String url)
public byte[] zipUncompress(byte[] input)
public byte[] lzwUncompress(byte[] input)
public byte[] packBitsUncompress(byte[] input, int expected)