Solving an OpenMP issue related to the B&W tool

This commit is contained in:
Hombre
2014-02-19 14:32:04 +01:00
parent ee040bc8cd
commit 1d1f76540a

View File

@@ -3001,12 +3001,11 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, EditBuffer *e
mix[1][2] = bwb;
mix[2][2] = bwb;
float in[3], val[3];
#ifdef _OPENMP
#pragma omp parallel for schedule(dynamic, 5)
#endif
for (int i=0; i<tH; i++) {
float in[3], val[3];
for (int j=0; j<tW; j++) {
in[0] = tmpImage->r(i,j);
in[1] = tmpImage->g(i,j);
@@ -3727,7 +3726,7 @@ void ImProcFunctions::chromiLuminanceCurve (EditBuffer *editBuffer, int pW, LabI
if (hhCurve) delete hhCurve;
// t2e.set();
// printf("Chromil took %d <20>sec\n",t2e.etime(t1e));
// printf("Chromil took %d <20>sec\n",t2e.etime(t1e));
}