source:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ToneMapper.h
@
2968
Revision 2968, 408 bytes checked in by mattausch, 16 years ago (diff) |
---|
Line | |
---|---|
1 | #ifndef __TONEMAPPER_H |
2 | #define __TONEMAPPER_H |
3 | |
4 | #include "common.h" |
5 | |
6 | namespace CHCDemoEngine |
7 | { |
8 | |
9 | |
10 | /** Class representing a tone mapping algorithm |
11 | */ |
12 | class ToneMapper |
13 | { |
14 | public: |
15 | |
16 | ToneMapper(); |
17 | /** Caculates average log lumincance. |
18 | */ |
19 | float CalcImageKey(float *pixels, int w, int h) const; |
20 | |
21 | float CalcMaxLuminance(float *pixels, int w, int h) const; |
22 | }; |
23 | |
24 | } |
25 | |
26 | #endif // __TONEMAPPER_H |
Note: See TracBrowser
for help on using the repository browser.