From 55fd5459ccb5ed2307266944f3bcbdedc45be9ae Mon Sep 17 00:00:00 2001 From: Desmis Date: Tue, 8 Jan 2019 15:57:26 +0100 Subject: [PATCH] Small modifications --- rtdata/languages/default | 2 ++ rtengine/iplocallab.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rtdata/languages/default b/rtdata/languages/default index bfcd82f57..603abb7e1 100644 --- a/rtdata/languages/default +++ b/rtdata/languages/default @@ -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 diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 4b5b81a2c..9ddf2919c 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -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;