disabled Soft radius TM

This commit is contained in:
Desmis
2019-05-03 18:15:13 +02:00
parent 7b44d39a27
commit 8613010937
2 changed files with 8 additions and 7 deletions

View File

@@ -5225,8 +5225,8 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o
JaggedArray<float> bufchro(bfw, bfh);
std::unique_ptr<LabImage> bufgb(new LabImage(bfw, bfh));
std::unique_ptr<LabImage> tmp1(new LabImage(bfw, bfh));
array2D<float> ble(bfw, bfh);
array2D<float> guid(bfw, bfh);
// array2D<float> ble(bfw, bfh);
// array2D<float> guid(bfw, bfh);
#ifdef _OPENMP
#pragma omp parallel for schedule(dynamic,16)
@@ -5282,15 +5282,15 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o
for (int x = 0; x < bfw; x++) {
buflight[y][x] /= coef;
bufchro[y][x] /= coefC;
guid[y][x] = (bufgb->L[y][x]) / 32768.f;
ble[y][x] = (tmp1->L[y][x]) / 32768.f;
// guid[y][x] = (bufgb->L[y][x]) / 32768.f;
// ble[y][x] = (tmp1->L[y][x]) / 32768.f;
}
}
if (lp.softradiustm > 0.f) {
guidedFilter(guid, ble, ble, 0.1f * lp.softradiustm / sk, 0.0001, multiThread, 4);
// guidedFilter(guid, ble, ble, 0.1f * lp.softradiustm / sk, 0.0001, multiThread, 4);
}
/*
#ifdef _OPENMP
#pragma omp parallel for schedule(dynamic,16)
#endif
@@ -5300,6 +5300,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o
tmp1->L[y][x] = LIM01(ble[y][x]) * 32768.f;
}
}
*/
bufgb.reset();
transit_shapedetect(8, tmp1.get(), nullptr, buflight, bufchro, nullptr, nullptr, nullptr, false, hueref, chromaref, lumaref, sobelref, 0.f, nullptr, lp, original, transformed, cx, cy, sk);
}