ij.io
public class ImageReader extends java.lang.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.
|
java.lang.Object |
readPixels(java.io.InputStream in)
Reads the image from the InputStream and returns the pixel
array (byte, short, int or float).
|
java.lang.Object |
readPixels(java.io.InputStream in,
long skipCount)
Skips the specified number of bytes, then reads an image and
returns the pixel array (byte, short, int or float).
|
java.lang.Object |
readPixels(java.lang.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 java.lang.Object readPixels(java.io.InputStream in)
public java.lang.Object readPixels(java.io.InputStream in, long skipCount)
public java.lang.Object readPixels(java.lang.String url)
public byte[] zipUncompress(byte[] input)
public byte[] lzwUncompress(byte[] input)
public byte[] packBitsUncompress(byte[] input, int expected)