Suppress warning and add tooltips

This commit is contained in:
Desmis
2020-03-27 09:27:43 +01:00
parent c836376766
commit ac83695645
3 changed files with 5 additions and 11 deletions

View File

@@ -885,10 +885,8 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
}
if (WaveParams.softrad > 0.f) {
printf("s1\n");
provradius = new LabImage(pW, pH);
provradius->CopyFrom(nprevl);
printf("s2\n");
}
@@ -924,13 +922,11 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
WaveParams.expnoise = pronois;
if (WaveParams.softrad > 0.f) {
printf("s3\n");
array2D<float> ble(pW, pH);
array2D<float> guid(pW, pH);
Imagefloat *tmpImage = nullptr;
tmpImage = new Imagefloat(pW, pH);
printf("s4\n");
#ifdef _OPENMP
#pragma omp parallel for
@@ -954,7 +950,6 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
tmpImage->b(ir, jr) = Z;
ble[ir][jr] = Y / 32768.f;
}
printf("s5\n");
double epsilmax = 0.0001;
double epsilmin = 0.00001;
@@ -965,7 +960,6 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
float blur = 10.f / scale * (0.0001f + 0.8f * WaveParams.softrad);
// rtengine::guidedFilter(guid, ble, ble, blur, 0.001, multiTh);
rtengine::guidedFilter(guid, ble, ble, blur, epsil, false);
printf("s6\n");
@@ -982,10 +976,8 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
Color::XYZ2Lab(X, Y, Z, L, a, b);
nprevl->L[ir][jr] = L;
}
printf("s7\n");
delete tmpImage;
printf("s8\n");
}
@@ -1075,11 +1067,9 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
}
*/
if (WaveParams.softrad > 0.f) {
printf("s9\n");
delete provradius;
provradius = NULL;
printf("s10\n");
}