Some changes suggested by @Floessie

This commit is contained in:
Ingo Weyrich
2019-11-26 19:42:48 +01:00
parent 2a4891827d
commit 79431ffa1d
15 changed files with 44 additions and 45 deletions

View File

@@ -5396,7 +5396,7 @@ void ImProcFunctions::getAutoExp (const LUTu &histogram, int histcompr, double
octile[count] += histogram[j];
if (octile[count] > sum / 8.f || (count == 7 && octile[count] > sum / 16.f)) {
octile[count] = xlog (1. + (float)j) / log (2.f);
octile[count] = xlog (1. + j) / log (2.f);
count++;// = min(count+1,7);
}
}
@@ -5409,7 +5409,7 @@ void ImProcFunctions::getAutoExp (const LUTu &histogram, int histcompr, double
octile[count] += histogram[j];
if (octile[count] > sum / 8.f || (count == 7 && octile[count] > sum / 16.f)) {
octile[count] = xlog (1. + (float)j) / log (2.f);
octile[count] = xlog (1. + j) / log (2.f);
count++;// = min(count+1,7);
}
}