Put in options cbdlsensi default 0.4
This commit is contained in:
@@ -813,10 +813,10 @@ void ImProcFunctions::idirpyr_eq_channel_loc(float ** data_coarse, float ** data
|
||||
// if(level == 5 && mult[level] > 1.f) {
|
||||
// multbis[level] = 1.f + 0.45f * (mult[level] - 1.f);
|
||||
// }
|
||||
|
||||
double sensicrash = settings->cbdlsensi;
|
||||
LUTf irangefn(0x20000);
|
||||
{
|
||||
const float noisehi = 1.33f * noise * 0.1f * dirpyrThreshold / expf(level * log(3.0)), noiselo = 0.66f * noise * 0.1f * dirpyrThreshold / expf(level * log(3.0));
|
||||
const float noisehi = 1.33f * noise * sensicrash * dirpyrThreshold / expf(level * log(3.0)), noiselo = 0.66f * noise * sensicrash * dirpyrThreshold / expf(level * log(3.0));
|
||||
//printf("level=%i multlev=%f noisehi=%f noiselo=%f skinprot=%f\n",level,mult[level], noisehi, noiselo, skinprot);
|
||||
// printf("noihi=%f noilo=%f\n", noisehi, noiselo);
|
||||
|
||||
|
@@ -85,6 +85,7 @@ public:
|
||||
double reduclow;
|
||||
bool detectshape;
|
||||
int previewselection;
|
||||
double cbdlsensi;
|
||||
|
||||
|
||||
Glib::ustring lensfunDbDirectory; ///< The directory containing the lensfun database. If empty, the system defaults will be used (as described in http://lensfun.sourceforge.net/manual/dbsearch.html)
|
||||
|
@@ -593,6 +593,7 @@ void Options::setDefaults()
|
||||
rtSettings.reduclow = 0.85;//transition for luminance out scope
|
||||
rtSettings.detectshape = true;//experimental new detection shape
|
||||
rtSettings.previewselection = 5;//betwen 1 to 40
|
||||
rtSettings.cbdlsensi = 0.4;//betwen 0.001 to 1
|
||||
|
||||
// end locallab
|
||||
|
||||
@@ -1619,6 +1620,10 @@ void Options::readFromFile(Glib::ustring fname)
|
||||
rtSettings.previewselection = keyFile.get_integer("Color Management", "Previewselection");
|
||||
}
|
||||
|
||||
if (keyFile.has_key("Color Management", "Cbdlsensi")) {//sensibility to crash for cbdl
|
||||
rtSettings.cbdlsensi = keyFile.get_double("Color Management", "Cbdlsensi");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (keyFile.has_group("ICC Profile Creator")) {
|
||||
@@ -2202,6 +2207,7 @@ void Options::saveToFile(Glib::ustring fname)
|
||||
//keyFile.set_double ("Color Management", "Decaction", rtSettings.decaction);
|
||||
keyFile.set_string("Color Management", "ClutsDirectory", clutsDir);
|
||||
keyFile.set_integer("Color Management", "Previewselection", rtSettings.previewselection);
|
||||
keyFile.set_double("Color Management", "Cbdlsensi", rtSettings.cbdlsensi);
|
||||
|
||||
keyFile.set_string("ICC Profile Creator", "PimariesPreset", ICCPC_primariesPreset);
|
||||
keyFile.set_double("ICC Profile Creator", "RedPrimaryX", ICCPC_redPrimaryX);
|
||||
|
Reference in New Issue
Block a user