The RTI Real-Time Image Library is a C++ class hierarchy that is used by the rtdimage software internally and was designed to be independent of X or Tk so that it can be used by other applications to preprocess images before sending them to be displayed. The interface is through the base class ImageData , which hides the different raw image data types and implements such algorithms as color scaling, median filtering, scaling, rotating and flipping images.
This class also interfaces with the saoimage World Coordinates code (rtdwcs module) to give World Coordinates support for the image when the required FITS keywords are present.
The input to the ImageData class is normally the raw image and the output is an image in X image format, suitable for display without changes in an X window. An X image in this case is just an array of bytes that can be assigned to a real XImage in the display application. Since these classes don't know anything about X or Tk, they are fed from the outside with pointers to the raw and X image data, the dimensions of the raw and X images and colormap information (the number of colors available and the color values).
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory