buildBlendMask: remove multiplication by amount as amount always was 1

This commit is contained in:
Ingo Weyrich
2019-12-20 17:44:51 +01:00
parent f8f100262f
commit 5face2e449
5 changed files with 10 additions and 11 deletions

View File

@@ -800,7 +800,7 @@ BENCHFUN
}
array2D<float>& blend = red; // red will be overridden anyway => we can use its buffer to store the blend mask
buildBlendMask(L, blend, W, H, contrast, 1.f, sharpeningParams.autoContrast, clipMask);
buildBlendMask(L, blend, W, H, contrast, sharpeningParams.autoContrast, clipMask);
if (plistener) {
plistener->setProgress(0.2);
}
@@ -849,7 +849,7 @@ BENCHFUN
}
// calculate contrast based blend factors to reduce sharpening in regions with low contrast
array2D<float>& blend = clipMask; // we can share blend and clipMask buffer here
buildBlendMask(L, blend, W, H, contrast, 1.f, sharpeningParams.autoContrast, clipMask);
buildBlendMask(L, blend, W, H, contrast, sharpeningParams.autoContrast, clipMask);
if (plistener) {
plistener->setProgress(0.2);
}