Fix NR luminance detail recovery calculation

Add back parentheses removed in
806c086fbc.
Closes #6235.
This commit is contained in:
Lawrence Lee
2021-05-10 22:02:49 -07:00
parent 1c9d1f522c
commit 62996e16b1

View File

@@ -667,7 +667,7 @@ BENCHFUN
const float gain = std::pow(2.0, expcomp);
const double params_Ldetail = std::min(dnparams.Ldetail, 99.9); // max out to avoid div by zero when using noisevar_Ldetail as divisor
const float noisevar_Ldetail = SQR(SQR(100. - params_Ldetail) + 50.0 * (100.0 - params_Ldetail) * TS * 0.5);
const float noisevar_Ldetail = SQR((SQR(100. - params_Ldetail) + 50.0 * (100.0 - params_Ldetail)) * TS * 0.5);
array2D<float> tilemask_in(TS, TS);
array2D<float> tilemask_out(TS, TS);