pixelshift: added V4 for tests
This commit is contained in:
@@ -50,9 +50,10 @@ float greenDiff(float a, float b, bool adaptive, float scale, float stddevFactor
|
||||
prnu *= avg;
|
||||
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 / (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); // V3: corrected version of V2
|
||||
// float korr = stddevFactor * stddev / (gDiff * eperIso * scale); // V3: corrected version of V2
|
||||
// float korr = stddevFactor * stddev / (maxVal * scale * eperIso); // V4: use max(G1,G2) scaled by eperIso
|
||||
diff -= korr;
|
||||
}
|
||||
return diff;
|
||||
|
Reference in New Issue
Block a user