Added experimental hsl mode for DeHaze (with still incomplete gui)

This commit is contained in:
heckflosse
2015-09-09 12:22:25 +02:00
parent d8945607d5
commit 6cdc6e1fe4
10 changed files with 121 additions and 10 deletions

View File

@@ -51,6 +51,7 @@ void ParamsEdited::set (bool v)
toneCurve.method = v;
dehaz.cdcurve = v;
dehaz.dehazmet = v;
dehaz.dehazcolorspace = v;
dehaz.enabled = v;
dehaz.str = v;
dehaz.scal = v;
@@ -520,6 +521,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
dehaz.cdcurve = dehaz.cdcurve && p.dehaz.cdcurve == other.dehaz.cdcurve;
dehaz.transmissionCurve = dehaz.transmissionCurve && p.dehaz.transmissionCurve == other.dehaz.transmissionCurve;
dehaz.dehazmet = dehaz.dehazmet && p.dehaz.dehazmet == other.dehaz.dehazmet;
dehaz.dehazcolorspace = dehaz.dehazcolorspace && p.dehaz.dehazcolorspace == other.dehaz.dehazcolorspace;
dehaz.str = dehaz.str && p.dehaz.str == other.dehaz.str;
dehaz.scal = dehaz.scal && p.dehaz.scal == other.dehaz.scal;
dehaz.neigh = dehaz.neigh && p.dehaz.neigh == other.dehaz.neigh;
@@ -1037,6 +1039,10 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
toEdit.dehaz.dehazmet = mods.dehaz.dehazmet;
}
if (dehaz.dehazcolorspace) {
toEdit.dehaz.dehazcolorspace = mods.dehaz.dehazcolorspace;
}
if (dehaz.str) {
toEdit.dehaz.str = mods.dehaz.str;
}