| |||||||||||
IJ Plugins: Image I/O Library | |||||||||||
IImage I/O library implements core functionality of ij-plugins Image I/O bundle. The library adds to ImageJ support for additional image file formats and their variants. Most important additions include:
Image I/O plugins can read/write image calibration information from TIFF files. Standard TIFF image calibration tags are supported (X_RESOLUTION, Y_RESOLUTION, RESOLUTION_UNIT). Additionally Image I/O can read images in BMP, FlashPiX, GIF, JPEG, PNG, and PNM formats; and save images in BMP, and JPEG formats. Image I/O makes use of Java Advance Imaging (JAI) codecs released by SUN as uncommitted source code for JAI 1.1.1 codecs . The plugin bundle is completely self contained. All used codec classes are included in the bundle and there is no need to install JAI itself to use the bundle. Reading of images using Image IO library is very simple, an image can be read with a single line of code: ImagePlus[] images = JAIReader.read("data/clown_LZW.tif");
Note that For the complete example see SimpleReadImage.java in subdirectory example/src or online. ImagePlus imp = ...
JAIWriter jaiWriter = new JAIWriter();
jaiWriter.setFormatName("PNG");
jaiWriter.write("myimage.png", imp);
To see of using Image IO library in Image/J plugins code see implementations of plugins based on ImageIO available in the Image IO source code.
Documentation for ij-plugins Image I/O library is avaliable here. | |||||||||||