Images -- RGB Image Abstraction Library

The Images library contains classes and functions to represent RGB images, and to load/save images from/to a variety of image file formats.

Header Files

Config.h
Config.h defines configuration-dependent macros used by the Images library. It should be included by client code that wants to make decisions based on the availability of optional features.
BaseImage.h
BaseImage is a base class to represent images in variable formats. The BaseImage class uses a handle mechanism to allow passing images as values to functions, and return images from functions without incurring copy overhead.
Image.h
Image is a generic type-safe interface to BaseImage, templatized by number of channels and component type for each pixel.
RGBImage.h
RGBImage is a convenience shortcut for Image objects containing 8-bit three-channel RGB images.
RGBAImage.h
RGBImage is a convenience shortcut for Image objects containing 8-bit four-channel RGBA images.
GetImageFileSize.h
GetImageFileSize.h contains a function to extract the pixel size from image files with reading the minimum required amount of information from the image file. The function detects the format of the given image file by its extension, and supports PPM, PNG, and JPEG image formats (the latter two rely on the libpng and libjpeg libraries, respectively).
ReadPNMImage.h
ReadPNMImage.h contains functions to read RGB images from image files in Portable AnyMap format over an IO::File abstraction.
ReadPNGImage.h
ReadPNGImage.h contains functions to read RGB or RGBA images from image files in PNG format over an IO::File abstraction. It relies on the libpng library.
ReadJPEGImage.h
ReadJPEGImage.h contains functions to read RGB images from image files in JPEG format over an IO::File abstraction. It relies on the libjpeg library.
ReadTIFFImage.h
ReadTIFFImage.h contains functions to read RGB or RGBA images from image files in TIFF format over an IO::SeekableFile abstraction. It relies on the libtiff library.
ReadImageFile.h
ReadImageFile.h contains a function to read RGB images from image files. The function detects the format of the given image file by its extension, and supports PPM, PNG, and JPEG image formats (the latter two rely on the libpng and libjpeg libraries, respectively). It also contains a function to read RGBA images from cursor files in Xcursor format.
WriteImageFile.h
WriteImageFile.h contains a function to write RGB images to image files. The function detects the format of the given image file by its extension, and supports PPM, PNG, and JPEG image formats (the latter two rely on the libpng and libjpeg libraries, respectively).
TextureSet.h
TextureSet is a class to represent sets of images to be used as OpenGL textures.
ExtractBlobs.h
ExtractBlobs.h contains functions to extract "blobs," sets of connected foreground pixels, from images with arbitrary pixel types. The header file defines several blob structures, each holding one specific additional attribute, that can be stacked on top of each other to collect multiple attributes at the same time.