Improve and clean code
This commit is contained in:
@@ -3726,8 +3726,8 @@ void ImProcFunctions::ContAllL(float *koeLi[12], float *maxkoeLi, bool lipschitz
|
||||
float bbbrS = 1.f - cp.b_rsl * aaarS;
|
||||
|
||||
if (level <= cp.numlevH) { //in function of levels
|
||||
// float klevred = 2.f * (waOpacityCurveSH[level * 55.5f] - 0.5f);
|
||||
// if(klevred > 0.f && level <= 6) {// level < 6 to avoid bad use of the curve if user put negative values positives
|
||||
// float klevred = 2.f * (waOpacityCurveSH[level * 55.5f] - 0.5f);
|
||||
// if(klevred > 0.f && level <= 6) {// level < 6 to avoid bad use of the curve if user put negative values positives
|
||||
if ((LL100 > cp.t_lhl * kH[level] && LL100 < cp.t_rhl * kH[level])) {
|
||||
kLlevH = alpha;
|
||||
} else if ((LL100 > cp.b_lhl * kH[level] && LL100 <= cp.t_lhl * kH[level])) {
|
||||
@@ -3737,12 +3737,12 @@ void ImProcFunctions::ContAllL(float *koeLi[12], float *maxkoeLi, bool lipschitz
|
||||
} else {
|
||||
kLlevH = 1.f;
|
||||
}
|
||||
// kLlevH = 1.f + (kLlevH - 1.f) * klevred;
|
||||
// kLlevH = 1.f + (kLlevH - 1.f);
|
||||
// kLlevH = 1.f + (kLlevH - 1.f) * klevred;
|
||||
// kLlevH = 1.f + (kLlevH - 1.f);
|
||||
}
|
||||
|
||||
if (level >= (9 - cp.numlevS)) {
|
||||
// if(klevred < 0.f && level >= 3) {//level > 3 to avoid bad use of the curve if user put positives values negatives
|
||||
// if(klevred < 0.f && level >= 3) {//level > 3 to avoid bad use of the curve if user put positives values negatives
|
||||
if ((LL100 > cp.t_lsl && LL100 < cp.t_rsl)) {
|
||||
kLlevS = alpha;
|
||||
} else if ((LL100 > cp.b_lsl && LL100 <= cp.t_lsl)) {
|
||||
@@ -3752,7 +3752,7 @@ void ImProcFunctions::ContAllL(float *koeLi[12], float *maxkoeLi, bool lipschitz
|
||||
} else {
|
||||
kLlevS = 1.f;
|
||||
}
|
||||
// kLlevS = 1.f - (kLlevS - 1.f) * klevred;
|
||||
// kLlevS = 1.f - (kLlevS - 1.f) * klevred;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user