Commit 3bbd22cb authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #5808 from cedrou:hdr.mergemertens.fixalgo

parents 3b87e3fa 76e4b0a8
...@@ -196,10 +196,11 @@ public: ...@@ -196,10 +196,11 @@ public:
wellexp = Mat::ones(size, CV_32F); wellexp = Mat::ones(size, CV_32F);
for(int c = 0; c < channels; c++) { for(int c = 0; c < channels; c++) {
Mat exp = splitted[c] - 0.5f; Mat expo = splitted[c] - 0.5f;
pow(exp, 2.0f, exp); pow(expo, 2.0f, expo);
exp = -exp / 0.08f; expo = -expo / 0.08f;
wellexp = wellexp.mul(exp); exp(expo, expo);
wellexp = wellexp.mul(expo);
} }
pow(contrast, wcon, contrast); pow(contrast, wcon, contrast);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment