Further cleanup of include dependencies
This commit is contained in:
@@ -200,7 +200,7 @@ float estimate_ambient_light(const array2D<float> &R, const array2D<float> &G, c
|
||||
}
|
||||
}
|
||||
|
||||
if (options.rtSettings.verbose) {
|
||||
if (settings->verbose) {
|
||||
std::cout << "dehaze: computing ambient light from " << patches.size()
|
||||
<< " patches" << std::endl;
|
||||
}
|
||||
@@ -284,7 +284,7 @@ void ImProcFunctions::dehaze(Imagefloat *img)
|
||||
const int H = img->getHeight();
|
||||
const float strength = LIM01(float(params->dehaze.strength) / 100.f * 0.9f);
|
||||
|
||||
if (options.rtSettings.verbose) {
|
||||
if (settings->verbose) {
|
||||
std::cout << "dehaze: strength = " << strength << std::endl;
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ void ImProcFunctions::dehaze(Imagefloat *img)
|
||||
}
|
||||
|
||||
if (min(ambient[0], ambient[1], ambient[2]) < 0.01f) {
|
||||
if (options.rtSettings.verbose) {
|
||||
if (settings->verbose) {
|
||||
std::cout << "dehaze: no haze detected" << std::endl;
|
||||
}
|
||||
restore(img, maxChannel, multiThread);
|
||||
@@ -334,7 +334,7 @@ void ImProcFunctions::dehaze(Imagefloat *img)
|
||||
}
|
||||
patchsize = max(max(W, H) / 600, 2);
|
||||
|
||||
if (options.rtSettings.verbose) {
|
||||
if (settings->verbose) {
|
||||
std::cout << "dehaze: ambient light is "
|
||||
<< ambient[0] << ", " << ambient[1] << ", " << ambient[2]
|
||||
<< std::endl;
|
||||
@@ -349,7 +349,7 @@ void ImProcFunctions::dehaze(Imagefloat *img)
|
||||
array2D<float> guideB(W, H, img->b.ptrs, ARRAY2D_BYREFERENCE);
|
||||
guidedFilter(guideB, dark, dark, radius, epsilon, multiThread);
|
||||
|
||||
if (options.rtSettings.verbose) {
|
||||
if (settings->verbose) {
|
||||
std::cout << "dehaze: max distance is " << maxDistance << std::endl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user