Fixed pb step 1
This commit is contained in:
parent
00360a6dbb
commit
1d56072be4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user