Small speedup for rl sharpening when damping = 0, no issue

This commit is contained in:
heckflosse
2018-06-12 17:59:10 +02:00
parent 168309f45b
commit a3055f3552
2 changed files with 20 additions and 30 deletions

View File

@@ -190,22 +190,12 @@ BENCHFUN
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);
}
}
} else {
// apply gaussian blur + damping
gaussianBlur(tmpI, tmp, W, H, sigma);
dcdamping(tmp, luminance, damping, W, H);
}
gaussianBlur(tmp, tmpI, W, H, sigma, nullptr, GAUSS_MULT);
} // end for
#ifdef _OPENMP