JAI ImageIO plugins for ImageJ - API

net.sf.ij.jaiio
Class JAIReader

java.lang.Object
  extended bynet.sf.ij.jaiio.JAIReader

public class JAIReader
extends java.lang.Object

Read image files using JAI image I/O codec (http://developer.java.sun.com/developer/sampsource/jai/) and convert them to Image/J representation.

Version:
$Revision: 1.4 $
Author:
Jarek Sacha

Nested Class Summary
static class JAIReader.ImageInfo
           
 
Method Summary
static ij.ImagePlus[] read(java.io.File file)
          Open image in the file using registered codecs.
static ij.ImagePlus[] read(java.io.File file, int[] pageIndex)
          Open image in the file using registered codecs.
static JAIReader.ImageInfo readFirstImageAndInfo(java.io.File file)
          Read only the first image in the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readFirstImageAndInfo

public static JAIReader.ImageInfo readFirstImageAndInfo(java.io.File file)
                                                 throws UnsupportedImageFileFormatException,
                                                        UnsupportedImageModelException,
                                                        java.io.IOException
Read only the first image in the file.

Parameters:
file - Image file.
Returns:
ImageInfo object.
Throws:
UnsupportedImageFileFormatException - If file is not in a supported image format
java.io.IOException - In case of I/O error.
UnsupportedImageModelException

read

public static ij.ImagePlus[] read(java.io.File file)
                           throws java.lang.Exception
Open image in the file using registered codecs. A file may contain multiple images. If all images in the file are of the same type and size they will be combines into single stack within ImagesPlus object returned as the first an only element of the image array. If reading from TIFF files, image resolution and Image/J's description string containing calibration information are decoded.

Parameters:
file - File to open image from.
Returns:
Array of images contained in the file.
Throws:
java.lang.Exception - when unable to read image from the specified file.

read

public static ij.ImagePlus[] read(java.io.File file,
                                  int[] pageIndex)
                           throws java.lang.Exception
Open image in the file using registered codecs. A file may contain multiple images. If all images in the file are of the same type and size they will be combines into single stack within ImagesPlus object returned as the first an only element of the image array. If reading from TIFF files, image resolution and Image/J's description string containing calibration information are decoded.

Parameters:
file - File to open image from.
pageIndex - Description of Parameter
Returns:
Array of images contained in the file.
Throws:
java.lang.Exception - when unable to read image from the specified file.

SourceForge.net Logo