Add mode 'super' for curves-lightness-contrast and suppress bug for cbdl

This commit is contained in:
Desmis
2017-01-31 11:29:06 +01:00
parent f60f208305
commit 6937c369ff
16 changed files with 992 additions and 546 deletions

View File

@@ -957,6 +957,14 @@ void Crop::update (int todo)
params.locallab.curvactiv = true;
}
if (parent->qualitycurves[sp] == 0) {
params.locallab.qualitycurveMethod = "none" ;
} else if (parent->qualitycurves[sp] == 1) {
params.locallab.qualitycurveMethod = "std" ;
} else if (parent->qualitycurves[sp] == 2) {
params.locallab.qualitycurveMethod = "enh" ;
}
std::vector<double> cretie;
for (int j = 0; j < parent->sizeretics[sp]; j++) {
@@ -1176,6 +1184,17 @@ void Crop::update (int todo)
}
if (parent->qualitycurves[sp] == 0) {
params.locallab.qualitycurveMethod = "none" ;
parent->qualitycurves[sp] = 0;
} else if (parent->qualitycurves[sp] == 1) {
params.locallab.qualitycurveMethod = "std" ;
parent->qualitycurves[sp] = 1;
} else if (parent->qualitycurves[sp] == 2) {
params.locallab.qualitycurveMethod = "enh" ;
parent->qualitycurves[sp] = 2;
}
std::vector<double> ccret;
for (int j = 0; j < parent->sizeretics[sp]; j++) {