Small modifications

This commit is contained in:
Desmis
2019-01-08 15:57:26 +01:00
parent 6f80156f1e
commit 55fd5459cc
2 changed files with 4 additions and 2 deletions

View File

@@ -859,6 +859,8 @@ HISTORY_MSG_602;Local - Soft Light scope
HISTORY_MSG_603;Local - Sh Blur radius
HISTORY_MSG_605;Local - Color Modifications
HISTORY_MSG_606;Local - Exp Modifications
HISTORY_MSG_607;Local - Color Mask C
HISTORY_MSG_608;Local - Color Mask L
HISTORY_MSG_CLAMPOOG;Clip out-of-gamut colors
HISTORY_MSG_COLORTONING_LABGRID_VALUE;CT - Color correction
HISTORY_MSG_COLORTONING_LABREGION_AB;CT - Color correction

View File

@@ -10894,7 +10894,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, LUTf & sobelrefs, float** shbu
//local color and light
if (!lp.inv && (lp.chro != 0 || lp.ligh != 0.f || lp.cont != 0 || lp.qualcurvemet != 0) && lp.colorena) { // || lllocalcurve)) { //interior ellipse renforced lightness and chroma //locallutili
if (!lp.inv && (lp.chro != 0 || lp.ligh != 0.f || lp.cont != 0 || lp.qualcurvemet != 0 || lp.showmaskcolmet >= 2) && lp.colorena) { // || lllocalcurve)) { //interior ellipse renforced lightness and chroma //locallutili
float hueplus = hueref + dhue;
float huemoins = hueref - dhue;
@@ -11010,7 +11010,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, LUTf & sobelrefs, float** shbu
float chromaskr = chromask / 50000.f;
valCC = float (locccmasCurve[500.f * chromaskr]);
valCC = 1.f - valCC;
float huemask = xatan2f(bufcolorig->b[loy - begy][lox - begx], bufcolorig->a[loy - begy][lox - begx]);
//float huemask = xatan2f(bufcolorig->b[loy - begy][lox - begx], bufcolorig->a[loy - begy][lox - begx]);
sincosval.y = (bufcolorig->a[loy - begy][lox - begx]) / chromask;
sincosval.x = (bufcolorig->b[loy - begy][lox - begx]) / chromask;
bufmaskblur->a[loy - begy][lox - begx] = 50000.f * valCC * sincosval.y;