added "Auto White Balance temperature bias" feature

This new slider in the White Balance tools allows to alter the computation of
the "auto white balance" by "biasing" it towards warmer or cooler
temperatures. The bias is expressed as a percentage of the computed
temperature, so that the resuling temperature is given by
"computedTemp + computedTemp * bias".
This commit is contained in:
Alberto Griggio
2017-02-12 17:39:52 +01:00
parent 6b6c08028d
commit dca0e41f35
54 changed files with 276 additions and 74 deletions

View File

@@ -65,6 +65,7 @@ protected:
Adjuster* temp;
Adjuster* green;
Adjuster* equal;
Adjuster* tempBias;
Gtk::Button* spotbutton;
int opt;
@@ -76,10 +77,12 @@ protected:
int custom_temp;
double custom_green;
double custom_equal;
double custom_tempBias;
void cache_customWB (int temp, double green); //cache custom WB setting to allow its recall
void cache_customTemp (int temp); //cache Temperature only to allow its recall
void cache_customGreen (double green); //cache Green only to allow its recall
void cache_customEqual (double equal); //cache Equal only to allow its recall
void cache_customTempBias (double tempBias); //cache TempBias only to allow its recall
int setActiveMethod (Glib::ustring label);
int _setActiveMethod (Glib::ustring &label, Gtk::TreeModel::Children &children);
@@ -115,7 +118,7 @@ public:
}
void setWB (int temp, double green);
void setAdjusterBehavior (bool tempadd, bool greenadd, bool equaladd);
void setAdjusterBehavior (bool tempadd, bool greenadd, bool equaladd, bool tempbiasadd);
void trimValues (rtengine::procparams::ProcParams* pp);
};