Skip to content

Commit

Permalink
Comment code
Browse files Browse the repository at this point in the history
  • Loading branch information
Desmis committed Dec 24, 2024
1 parent cf29e11 commit af7fd1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rtengine/iplocallab.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14464,7 +14464,7 @@ void ImProcFunctions::Lab_Local(
//blur with fftw
if (fft || lp.rad > 30.0) {
if (lp.chromet == 0) {
ImProcFunctions::fftw_convol_blur2(tmp1->L, tmp1->L, bfwr, bfhr, radius, 0, 0);
ImProcFunctions::fftw_convol_blur2(tmp1->L, tmp1->L, bfwr, bfhr, radius, 0, 0);//remove all "sk"
} else if (lp.chromet == 1) {
ImProcFunctions::fftw_convol_blur2(tmp1->a, tmp1->a, bfwr, bfhr, radius, 0, 0);
ImProcFunctions::fftw_convol_blur2(tmp1->b, tmp1->b, bfwr, bfhr, radius, 0, 0);
Expand Down Expand Up @@ -14573,7 +14573,7 @@ void ImProcFunctions::Lab_Local(
delete tmpImage;
}
}
//recovery with mask luminance
//recovery with mask luminance for blur grain noise
if (lp.blurmet == 0 && lp.blmet == 0) {//for blur, grain, noise
if (lp.enablMask && lp.recothr != 1.f && lp.smasktyp != 1) {
recovm(lp.higthr, lp.lowthr, lp.recothr, lp.invmask, bfw, bfh, xstart, ystart, 2.f, sk, bufmaskblurbl.get(), tmp1.get(), tmp3.get(), multiThread);
Expand Down Expand Up @@ -14630,7 +14630,7 @@ void ImProcFunctions::Lab_Local(
}

delete[] tmL;
//recovery with mask luminance
//recovery with mask luminance for median
if (lp.enablMask && lp.recothr != 1.f && lp.smasktyp != 1) {
recovm(lp.higthr, lp.lowthr, lp.recothr, lp.invmask, bfw, bfh, xstart, ystart, 2.f, sk, bufmaskblurbl.get(), tmp1.get(), tmp3.get(), multiThread);
}
Expand Down Expand Up @@ -14663,6 +14663,7 @@ void ImProcFunctions::Lab_Local(
}

delete[] tmL;
//new recovery for median
if (lp.enablMask && lp.recothr != 1.f && lp.smasktyp != 1) {
recovm(lp.higthr, lp.lowthr, lp.recothr, lp.invmask, TW, TH, 0, 0, 2.f, sk, bufmaskblurbl.get(), tmp1.get(), tmp3.get(), multiThread);
}
Expand Down Expand Up @@ -14763,7 +14764,7 @@ void ImProcFunctions::Lab_Local(
}
}
}
//recovery with mask luminance
//new recovery with mask luminance guided filter
if (lp.enablMask && lp.recothr != 1.f && lp.smasktyp != 1) {
recovm(lp.higthr, lp.lowthr, lp.recothr, lp.invmask, bfw, bfh, xstart, ystart, 2.f, sk, bufmaskblurbl.get(), tmp1.get(), tmp3.get(), multiThread);
}
Expand Down

0 comments on commit af7fd1d

Please sign in to comment.