From 1dbd5d8a5ac1bd8583a2ae363ee1af32243995ab Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Thu, 22 Feb 2018 17:46:11 +0100 Subject: [PATCH] removed more clipping places --- rtengine/improcfun.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 63ceccdaa..9b1963e37 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -4252,9 +4252,9 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer for (int i = istart, ti = 0; i < tH; i++, ti++) { for (int j = jstart, tj = 0; j < tW; j++, tj++) { const SatAndValueBlendingToneCurve& userToneCurvebw = static_cast (customToneCurvebw1); - rtemp[ti * TS + tj] = CLIP (rtemp[ti * TS + tj]); - gtemp[ti * TS + tj] = CLIP (gtemp[ti * TS + tj]); - btemp[ti * TS + tj] = CLIP (btemp[ti * TS + tj]); + // rtemp[ti * TS + tj] = CLIP (rtemp[ti * TS + tj]); + // gtemp[ti * TS + tj] = CLIP (gtemp[ti * TS + tj]); + // btemp[ti * TS + tj] = CLIP (btemp[ti * TS + tj]); userToneCurvebw.Apply (rtemp[ti * TS + tj], gtemp[ti * TS + tj], btemp[ti * TS + tj]); } } @@ -4262,9 +4262,9 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer for (int i = istart, ti = 0; i < tH; i++, ti++) { for (int j = jstart, tj = 0; j < tW; j++, tj++) { const WeightedStdToneCurve& userToneCurvebw = static_cast (customToneCurvebw1); - rtemp[ti * TS + tj] = CLIP (rtemp[ti * TS + tj]); - gtemp[ti * TS + tj] = CLIP (gtemp[ti * TS + tj]); - btemp[ti * TS + tj] = CLIP (btemp[ti * TS + tj]); + // rtemp[ti * TS + tj] = CLIP (rtemp[ti * TS + tj]); + // gtemp[ti * TS + tj] = CLIP (gtemp[ti * TS + tj]); + // btemp[ti * TS + tj] = CLIP (btemp[ti * TS + tj]); userToneCurvebw.Apply (rtemp[ti * TS + tj], gtemp[ti * TS + tj], btemp[ti * TS + tj]); } @@ -4697,9 +4697,9 @@ void ImProcFunctions::rgbProc (Imagefloat* working, LabImage* lab, PipetteBuffer for (int j = 0; j < tW; j++) { const WeightedStdToneCurve& userToneCurve = static_cast (customToneCurvebw2); - tmpImage->r (i, j) = CLIP (tmpImage->r (i, j)); - tmpImage->g (i, j) = CLIP (tmpImage->g (i, j)); - tmpImage->b (i, j) = CLIP (tmpImage->b (i, j)); + // tmpImage->r (i, j) = CLIP (tmpImage->r (i, j)); + // tmpImage->g (i, j) = CLIP (tmpImage->g (i, j)); + // tmpImage->b (i, j) = CLIP (tmpImage->b (i, j)); userToneCurve.Apply (tmpImage->r (i, j), tmpImage->g (i, j), tmpImage->b (i, j)); }