Rev | Line | |
---|
[2965] | 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();
|
---|
[2966] | 17 | /** Caculates average log lumincance.
|
---|
[2965] | 18 | */
|
---|
[2968] | 19 | float CalcImageKey(float *pixels, int w, int h) const;
|
---|
| 20 |
|
---|
| 21 | float CalcMaxLuminance(float *pixels, int w, int h) const;
|
---|
[2965] | 22 | };
|
---|
| 23 |
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | #endif // __TONEMAPPER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.