Fixed pb step 1

This commit is contained in:
U-PCSPECIALIST01\jdesm 2024-10-23 12:01:09 +02:00 committed by Lawrence Lee
parent 00360a6dbb
commit 1d56072be4
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -8913,7 +8913,10 @@ void ImProcFunctions::BlurNoise_Local(LabImage *tmp1, LabImage * originalmask, c
const float chrodelta2 = SQR(std::sqrt(SQR(maskptr->a[y][x]) + SQR(maskptr->b[y][x])) - chromaref * 327.68f);
const float huedelta2 = abdelta2 - chrodelta2;
const float dE = std::sqrt(kab * (kch * chrodelta2 + kH * huedelta2) + kL * SQR(refL - maskptr->L[y][x]));
const float reducdE = calcreducdE(dE, maxdE, mindE, maxdElim, mindElim, lp.iterat, limscope, lp.sensbn);
float reducdE = calcreducdE(dE, maxdE, mindE, maxdElim, mindElim, lp.iterat, limscope, lp.sensbn);
if(lp.fullim == 3 ) {//disabled scope
reducdE = 1.f;
}
float difL = (tmp1->L[y - ystart][x - xstart] - original->L[y][x]) * localFactor * reducdE;
transformed->L[y][x] = CLIP(original->L[y][x] + difL);