Fix slowdown caused by 03efc48

This commit is contained in:
heckflosse
2018-04-06 16:19:01 +02:00
parent d7dfc1d242
commit 68ecc24270

View File

@@ -122,6 +122,9 @@ void ImProcFunctions::deconvsharpening (float** luminance, float** tmp, int W, i
if (!needdamp) {
// apply gaussian blur and divide luminance by result of gaussian blur
gaussianBlur (tmpI, tmp, W, H, sigma, nullptr, GAUSS_DIV, luminance);
#ifdef _OPENMP
#pragma omp for
#endif
for (int i = 0; i < H; i++) {
for(int j = 0; j < W; j++) {
tmp[i][j] = max(tmp[i][j], 0.f);