Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Image Class Reference

A simple Image class holding a 2D array of rgb values. More...

#include <utilities/Image.h>

List of all members.

Public Types

enum  Mode { RGB, XYZ }

Public Member Functions

 Image (unsigned int w, unsigned int h)
 Image (unsigned int w, unsigned int h, rgb c)
void safeSetPixel (unsigned int x, unsigned int y, rgb c)
void setPixel (unsigned int x, unsigned int y, rgb c)
rgb getPixel (unsigned int x, unsigned int y) const
rgb safeGetPixel (unsigned int x, unsigned int y) const
rgb getPixel (double x, double y) const
void getMaxComponent (unsigned int &x, unsigned int &y, rgb &c)
void getMinComponent (unsigned int &x, unsigned int &y, rgb &c)
unsigned int width () const
unsigned int height () const
void linearScale (double gain)
void gammaCorrect (double gain, double gamma)
void convertXYZRGB ()
void convertRGBYxy ()
void convertYxyRGB ()
void setRGB ()
void setXYZ ()
bool isRGB () const
bool isXYZ () const
ImagecylindricalEqualArea (unsigned int desired_width)


Detailed Description

A simple Image class holding a 2D array of rgb values.

Images can currently be in one of two Modes: RGB or XYZ. These modes define what kind of tristimulus value is being represented in the image. On final output, the ImageIO plugin checks to see what mode an image is in before writing it out.

Todo:
Port reinhardTonemap code into a Tonemapper plugin.

Port cylindricalEqualArea code into external helper app.


The documentation for this class was generated from the following files:
Generated on Wed Jul 20 16:15:22 2005 for galileo by  doxygen 1.4.3