diff options
Diffstat (limited to 'plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp')
-rw-r--r-- | plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp b/plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp index a14cc99915..d1efe9486b 100644 --- a/plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp +++ b/plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp @@ -2,7 +2,7 @@ // Tone mapping operator (Drago, 2003) // // Design and implementation by -// - Hervй Drolon (drolon@infonie.fr) +// - Hervé Drolon (drolon@infonie.fr) // // This file is part of FreeImage 3 // @@ -40,7 +40,7 @@ biasFunction(const double b, const double x) { } /** -Padй approximation of log(x + 1) +Padé approximation of log(x + 1) x(6+x)/(6+4x) good if x < 1 x*(6 + 0.7662x)/(5.9897 + 3.7658x) between 1 and 2 See http://www.nezumi.demon.co.uk/consult/logx.htm @@ -94,7 +94,7 @@ ToneMappingDrago03(FIBITMAP *dib, const float maxLum, const float avgLum, float /** Normal tone mapping of every pixel - further acceleration is obtained by a Padй approximation of log(x + 1) + further acceleration is obtained by a Padé approximation of log(x + 1) */ BYTE *bits = (BYTE*)FreeImage_GetBits(dib); for(y = 0; y < height; y++) { @@ -121,7 +121,7 @@ ToneMappingDrago03(FIBITMAP *dib, const float maxLum, const float avgLum, float /** fast tone mapping split the image into 3x3 pixel tiles and perform the computation for each group of 9 pixels - further acceleration is obtained by a Padй approximation of log(x + 1) + further acceleration is obtained by a Padé approximation of log(x + 1) => produce artifacts and not so faster, so the code has been disabled */ #define PIXEL(x, y) image[y*fpitch + x].red |