dehaze: add accidently removed early exit in case there is no haze detected, #5456

This commit is contained in:
Ingo Weyrich
2019-09-22 20:53:03 +02:00
parent 0fc0eced5a
commit 189f474e03

View File

@@ -257,6 +257,13 @@ BENCHFUN
}
}
if (min(ambient[0], ambient[1], ambient[2]) < 0.01f) {
if (options.rtSettings.verbose) {
std::cout << "dehaze: no haze detected" << std::endl;
}
img->normalizeFloatTo65535();
return; // probably no haze at all
}
patchsize = max(max(W, H) / 600, 2);
if (options.rtSettings.verbose) {