Fixed bug in Exposure and suppress warning

This commit is contained in:
Desmis
2019-10-04 18:10:07 +02:00
parent 7ba7869952
commit 6f29a08f39
3 changed files with 21 additions and 52 deletions

View File

@@ -5343,7 +5343,7 @@ void ImProcFunctions::EPDToneMaplocal(int sp, LabImage *lab, LabImage *tmp1, uns
//Restore past range, also desaturate a bit per Mantiuk's Color correction for tone mapping.
float s = (1.0f + 38.7889f) * powf(Compression, 1.5856f) / (1.0f + 38.7889f * powf(Compression, 1.5856f));
float sat = s + 0.3f * s * satur;
printf("s=%f sat=%f \n", s, sat);
//printf("s=%f sat=%f \n", s, sat);
if(sat == 1.f) sat = 1.001f;
#ifdef _OPENMP
#pragma omp parallel for // removed schedule(dynamic,10)