Capture sharpening: small speedup, also reduced memory usage by width * height * 4 byte

This commit is contained in:
Ingo Weyrich
2019-09-14 17:51:28 +02:00
parent 2690493746
commit aadeb539a9

View File

@@ -765,7 +765,7 @@ BENCHFUN
plistener->setProgress(0.1);
}
// calculate contrast based blend factors to reduce sharpening in regions with low contrast
JaggedArray<float> blend(W, H);
array2D<float>& blend = clipMask; // we can share blend and clipMask buffer here
buildBlendMask(L, blend, W, H, contrast, 1.f, sharpeningParams.autoContrast, clipMask);
if (plistener) {
plistener->setProgress(0.2);