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:
@@ -57,10 +57,13 @@ public:
|
||||
ColorTemp (double t, double g, double e, const Glib::ustring &m);
|
||||
ColorTemp (double mulr, double mulg, double mulb, double e);
|
||||
|
||||
void update (const double rmul, const double gmul, const double bmul, const double equal)
|
||||
void update (const double rmul, const double gmul, const double bmul, const double equal, const double tempBias=0.0)
|
||||
{
|
||||
this->equal = equal;
|
||||
mul2temp (rmul, gmul, bmul, this->equal, temp, green);
|
||||
if (tempBias != 0.0 && tempBias >= -1.0 && tempBias <= 1.0) {
|
||||
temp += temp * tempBias;
|
||||
}
|
||||
}
|
||||
void useDefaults (const double equal)
|
||||
{
|
||||
|
Reference in New Issue
Block a user