Dehaze Improvement

This commit is contained in:
Desmis
2015-08-20 13:54:18 +02:00
parent 86b0bb5420
commit b941188ac8
10 changed files with 238 additions and 227 deletions

View File

@@ -887,6 +887,7 @@ void ProcParams::setDefaults ()
labCurve.neigh = 80;
labCurve.gain = 1;
labCurve.offs = 0;
labCurve.vart = 1;
labCurve.avoidcolorshift = false;
labCurve.lcredsk = true;
labCurve.rstprotection = 0;
@@ -1559,6 +1560,9 @@ int ProcParams::save (Glib::ustring fname, Glib::ustring fname2, bool fnameAbsol
if (!pedited || pedited->labCurve.offs) {
keyFile.set_integer ("Luminance Curve","Offs", labCurve.offs);
}
if (!pedited || pedited->labCurve.vart) {
keyFile.set_integer ("Luminance Curve","Vart", labCurve.vart);
}
if (!pedited || pedited->labCurve.avoidcolorshift) {
keyFile.set_boolean ("Luminance Curve", "AvoidColorShift", labCurve.avoidcolorshift);
@@ -3714,6 +3718,13 @@ int ProcParams::load (Glib::ustring fname, ParamsEdited* pedited)
pedited->labCurve.offs = true;
}
}
if (keyFile.has_key ("Luminance Curve", "Vart")) {
labCurve.vart = keyFile.get_integer ("Luminance Curve", "Vart");
if (pedited) {
pedited->labCurve.vart = true;
}
}
if (ppVersion < 303) {
// transform Saturation into Chromaticity
@@ -7078,6 +7089,7 @@ bool ProcParams::operator== (const ProcParams& other)
&& labCurve.gain == other.labCurve.gain
&& labCurve.offs == other.labCurve.offs
&& labCurve.dehazmet == other.labCurve.dehazmet
&& labCurve.vart == other.labCurve.vart
&& labCurve.brightness == other.labCurve.brightness
&& labCurve.contrast == other.labCurve.contrast