Allow histogram matching for YI M1 Camera (160x120 thumbs)

This commit is contained in:
Ingo Weyrich 2019-03-19 17:43:42 +01:00 committed by GitHub
parent 18598f5354
commit 28b785682a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@ void RawImageSource::getAutoMatchedToneCurve(const ColorManagementParams &cp, st
histMatchingCache = outCurve;
*histMatchingParams = cp;
return;
} else if (w * 32 < fw || w * h < 19200) {
} else if (w * 33 < fw || w * h < 19200) {
// Some cameras have extremely small thumbs, for example Canon PowerShot A3100 IS has 128x96 thumbs.
// For them we skip histogram matching.
// With 160x120 thumbs from RICOH GR DIGITAL 2 it works fine, so we use 19200 as limit.