Update histmatching.cc

Allow histogram matching also for small thumbs
This commit is contained in:
Ingo Weyrich
2019-03-18 17:43:17 +01:00
committed by GitHub
parent 86550c167f
commit 1cf1e111d5

View File

@@ -289,7 +289,7 @@ void RawImageSource::getAutoMatchedToneCurve(const ColorManagementParams &cp, st
histMatchingCache = outCurve; histMatchingCache = outCurve;
*histMatchingParams = cp; *histMatchingParams = cp;
return; return;
} else if (w * 10 < fw) { } else if (w * 25 < fw) {
if (settings->verbose) { if (settings->verbose) {
std::cout << "histogram matching: the embedded thumbnail is too small: " << w << "x" << h << std::endl; std::cout << "histogram matching: the embedded thumbnail is too small: " << w << "x" << h << std::endl;
} }