#ifndef __TONEMAPPER_H #define __TONEMAPPER_H #include "common.h" namespace CHCDemoEngine { /** Class representing a tone mapping algorithm */ class ToneMapper { public: ToneMapper(); /** Caculates average log lumincance. */ float CalcImageKey(float *pixels, int w, int h) const; float CalcMaxLuminance(float *pixels, int w, int h) const; }; } #endif // __TONEMAPPER_H