first version of new shadows/highlights tool

This commit is contained in:
Alberto Griggio
2018-04-13 17:30:29 +02:00
parent f8c06863fe
commit 25b066e257
8 changed files with 184 additions and 69 deletions

View File

@@ -1187,17 +1187,17 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, eSensorT
// update blurmap
SHMap* shmap = nullptr;
if (params.sh.enabled) {
shmap = new SHMap (fw, fh, false);
double radius = sqrt (double (fw * fw + fh * fh)) / 2.0;
double shradius = params.sh.radius;
// if (params.sh.enabled) {
// shmap = new SHMap (fw, fh, false);
// double radius = sqrt (double (fw * fw + fh * fh)) / 2.0;
// double shradius = params.sh.radius;
if (!params.sh.hq) {
shradius *= radius / 1800.0;
}
// if (!params.sh.hq) {
// shradius *= radius / 1800.0;
// }
shmap->update (baseImg, shradius, ipf.lumimul, params.sh.hq, 16);
}
// shmap->update (baseImg, shradius, ipf.lumimul, params.sh.hq, 16);
// }
// RGB processing
double expcomp = params.toneCurve.expcomp;