Go up one levelGo to Previous Go to Next

Image I/O

The main class interface for reading, writing and accessing images is called ImageIO . This is a reference counted class, so it can easily be shared among different classes without any memory management concerns. Class ImageIO manages a pointer to a subclass of ImageIORep that is specialized for a specific image type. There is currently only one class subclass implemented in this library, for FITS images, called FitsIO 1 . One flexible way to create an ImageIO object is to pass the constructor a pointer to the subclass of ImageIORep to be managed:

 
ImageIO imio = FitsIO::read(filename);

The FitsIO::read static method returns a pointer to a FitsIO object, created by reading the given file.

Adding New Image Formats


1. The GAIA plugin also defines a subclass of ImageIORep that adds support for NDF images.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory