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

@@ -884,17 +884,17 @@ private:
// update blurmap
SHMap* shmap = nullptr;
if (params.sh.enabled) {
shmap = new SHMap (fw, fh, true);
double radius = sqrt (double (fw * fw + fh * fh)) / 2.0;
double shradius = params.sh.radius;
// if (params.sh.enabled) {
// shmap = new SHMap (fw, fh, true);
// 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, 1);
}
// shmap->update (baseImg, shradius, ipf.lumimul, params.sh.hq, 1);
// }
// RGB processing