Fix NR luminance detail recovery calculation
Add back parentheses removed in
806c086fbc
.
Closes #6235.
This commit is contained in:
@@ -667,7 +667,7 @@ BENCHFUN
|
|||||||
|
|
||||||
const float gain = std::pow(2.0, expcomp);
|
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 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_in(TS, TS);
|
||||||
array2D<float> tilemask_out(TS, TS);
|
array2D<float> tilemask_out(TS, TS);
|
||||||
|
Reference in New Issue
Block a user