From 7eda37a081ae4410faaeead2994c0f37c0509658 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Thu, 24 Nov 2016 19:28:11 +0100 Subject: [PATCH] pixelshift: adaptice method V3 (worse than V2 imho) --- rtengine/pixelshift.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtengine/pixelshift.cc b/rtengine/pixelshift.cc index 4a3d9e7e6..4c1c1f122 100644 --- a/rtengine/pixelshift.cc +++ b/rtengine/pixelshift.cc @@ -51,7 +51,8 @@ float greenDiff(float a, float b, bool adaptive, float scale, float stddevFactor float stddev = sqrtf(avg + nreadIso * nreadIso + prnu * prnu); // float korr = stddevFactor * stddev / (a * scale); // V0: use G1 not scaled by eperIso // float korr = stddevFactor * stddev / (maxVal * scale); // V1: use max(G1,G2) not scaled by eperIso - float korr = stddevFactor * stddev / (gDiff / (eperIso * scale)); // V2: use absolute difference abs(G1-G2) scaled by eperISo +// float korr = stddevFactor * stddev / (gDiff / (eperIso * scale)); // V2: use absolute difference abs(G1-G2) scaled by eperISo + float korr = stddevFactor * stddev / (gDiff * eperIso * scale); // V3: corrected version of V2 diff -= korr; } return diff;