Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ImageReader Class Reference

Public Member Functions

 ImageReader (FileInfo fi)
 
Object readPixels (InputStream in)
 
Object readPixels (InputStream in, long skipCount)
 
Object readPixels (String url)
 

Detailed Description

Reads raw 8-bit, 16-bit or 32-bit (float or RGB) images from a stream or URL.

Definition at line 8 of file ImageReader.java.

Constructor & Destructor Documentation

ImageReader ( FileInfo  fi)
inline

Constructs a new ImageReader using a FileInfo object to describe the file to be read.

See Also
ij.io.FileInfo

Definition at line 21 of file ImageReader.java.

Member Function Documentation

Object readPixels ( InputStream  in)
inline

Reads the image from the InputStream and returns the pixel array (byte, short, int or float). Returns null if there was an IO exception. Does not close the InputStream.

Definition at line 312 of file ImageReader.java.

Object readPixels ( InputStream  in,
long  skipCount 
)
inline

Skips the specified number of bytes, then reads an image and returns the pixel array (byte, short, int or float). Returns null if there was an IO exception. Does not close the InputStream.

Definition at line 366 of file ImageReader.java.

Object readPixels ( String  url)
inline

Reads the image from a URL and returns the pixel array (byte, short, int or float). Returns null if there was an IO exception.

Definition at line 380 of file ImageReader.java.


The documentation for this class was generated from the following file: