New highlight recovery tool, including highlight recovery threshold.
This commit is contained in:
@@ -55,6 +55,7 @@ void ProcParams::setDefaults () {
|
||||
toneCurve.saturation = 0;
|
||||
toneCurve.black = 0;
|
||||
toneCurve.hlcompr = 70;
|
||||
toneCurve.hlcomprthresh = 0;
|
||||
toneCurve.shcompr = 25;
|
||||
toneCurve.curve.clear ();
|
||||
|
||||
@@ -236,6 +237,7 @@ int ProcParams::save (Glib::ustring fname) const {
|
||||
keyFile.set_integer ("Exposure", "Saturation", toneCurve.saturation);
|
||||
keyFile.set_integer ("Exposure", "Black", toneCurve.black);
|
||||
keyFile.set_integer ("Exposure", "HighlightCompr", toneCurve.hlcompr);
|
||||
keyFile.set_integer ("Exposure", "HighlightComprThreshold", toneCurve.hlcomprthresh);
|
||||
keyFile.set_integer ("Exposure", "ShadowCompr", toneCurve.shcompr);
|
||||
Glib::ArrayHandle<double> tcurve = toneCurve.curve;
|
||||
keyFile.set_double_list("Exposure", "Curve", tcurve);
|
||||
@@ -502,6 +504,7 @@ if (keyFile.has_group ("Exposure")) {
|
||||
if (keyFile.has_key ("Exposure", "Black")) toneCurve.black = keyFile.get_integer ("Exposure", "Black");
|
||||
if (keyFile.has_key ("Exposure", "HighlightCompr")) toneCurve.hlcompr = keyFile.get_integer ("Exposure", "HighlightCompr");
|
||||
if (toneCurve.hlcompr > 100) toneCurve.hlcompr = 100; // older pp3 files can have values above 100.
|
||||
if (keyFile.has_key ("Exposure", "HighlightComprThreshold")) toneCurve.hlcomprthresh = keyFile.get_integer ("Exposure", "HighlightComprThreshold");
|
||||
if (keyFile.has_key ("Exposure", "ShadowCompr")) toneCurve.shcompr = keyFile.get_integer ("Exposure", "ShadowCompr");
|
||||
if (toneCurve.shcompr > 100) toneCurve.shcompr = 100; // older pp3 files can have values above 100.
|
||||
if (version>200)
|
||||
@@ -854,6 +857,7 @@ bool ProcParams::operator== (const ProcParams& other) {
|
||||
&& toneCurve.saturation == other.toneCurve.saturation
|
||||
&& toneCurve.shcompr == other.toneCurve.shcompr
|
||||
&& toneCurve.hlcompr == other.toneCurve.hlcompr
|
||||
&& toneCurve.hlcomprthresh == other.toneCurve.hlcomprthresh
|
||||
&& toneCurve.autoexp == other.toneCurve.autoexp
|
||||
&& toneCurve.clip == other.toneCurve.clip
|
||||
&& toneCurve.expcomp == other.toneCurve.expcomp
|
||||
|
Reference in New Issue
Block a user