diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-11-28 22:12:43 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-11-28 22:12:43 +0300 |
commit | 80221d816eeb98f0df38e0243390033c614952f3 (patch) | |
tree | 7618176108093921b6934343bc2f76a66ea97730 /plugins/AdvaImg/src/FreeImage/tmoDrago03.cpp | |
parent | 25df99ba7462958f2cb9075020ec1c9a5a7c9f50 (diff) |
Source files converted to utf-8
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 d46a8c8426..a14cc99915 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 |