locallab: speedup for locallab denoise

This commit is contained in:
heckflosse
2017-03-28 18:22:31 +02:00
parent 0a8f9dd15b
commit 1073172c31
5 changed files with 114 additions and 115 deletions

View File

@@ -78,6 +78,17 @@ public:
allocLab(W, H);
};
void clear(bool multiThread = false) {
#ifdef _OPENMP
#pragma omp parallel for if(multiThread)
#endif
for(int i = 0; i < H; ++i) {
for(int j = 0; j < W; ++j) {
L[i][j] = a[i][j] = b[i][j] = 0.f;
}
}
}
};
}