RGBE image format

From Wikipedia, the free encyclopedia

RGBE is an image format invented by Greg Ward Larson. It stores pixels as one byte each for RGB (red, green, and blue) values with a one byte shared exponent. Thus it stores four bytes per pixel.

RGBE's biggest advantage is that it allows pixels to have the extended range and precision of floating point values. Often when images are generated from light simulations, the range of pixels values is much greater than will nicely fit into the standard 0..255 range of standard 24-bit image formats. As a result the bright pixels are either clipped to 255 or end up losing all their precision in dimmer pixels. By using a shared exponent, the RGBE format gains some of the advantages floating point values without the 12 bytes per pixel needed for single precision IEEE floating-point values, or 6 bytes in half precision (and which would cover smaller range). It can handle very bright pixels without loss of precision for darker ones.

Greg Ward provides code to handle RGBE files in his Radiance rendering system.

[edit] See also

[edit] External links

Languages