Skip to content

Commit

Permalink
Disable exposure Laplacian when CBDL enabled
Browse files Browse the repository at this point in the history
Avoids crashes due to NaNs.
  • Loading branch information
Lawrence37 authored Nov 6, 2024
1 parent ca329d9 commit 24214fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtengine/iplocallab.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20533,7 +20533,7 @@ void ImProcFunctions::Lab_Local(
float epsi = 0.000001f;


if((lp.laplacexp > 1.f && lp.exposena) || (lp.strng > 2.f && lp.sfena)){//strong Laplacian
if((lp.laplacexp > 1.f && lp.exposena) || (lp.strng > 2.f && lp.sfena) || (lp.exposena && lp.expcomp != 0.f && params->dirpyrequalizer.enabled)){//strong Laplacian
notlaplacian = true;
}

Expand Down

0 comments on commit 24214fb

Please sign in to comment.