improvment to tone-mapping local - same as make by Ingo in dev

This commit is contained in:
U-PC-BUREAU\jacques
2018-11-05 15:03:45 +01:00
parent f47cc199b5
commit c4d1241354

View File

@@ -5315,6 +5315,10 @@ void ImProcFunctions::EPDToneMaplocal(int sp, LabImage *lab, LabImage *tmp1, uns
minL = 0.0f; //Disable the shift if there are no negative numbers. I wish there were just no negative numbers to begin with.
}
if (maxL == 0.f) { // avoid division by zero
maxL = 1.f;
}
#pragma omp parallel for
for (i = 0; i < N; i++)