From b99677a6944bd2fcfc1b01a328cd855b92502a72 Mon Sep 17 00:00:00 2001 From: "U-PCSPECIALIST01\\jdesm" Date: Thu, 21 Dec 2023 13:50:49 +0100 Subject: [PATCH] Clean code --- rtengine/iplocallab.cc | 8 +------- rtgui/locallabtools2.cc | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 35195c9708..e596ba3252 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -2726,16 +2726,12 @@ void ImProcFunctions::ciecamloc_02float(const struct local_params& lp, int sp, L float lightL = 0.f; float contQ = 0.f; float lightQ = 0.f; - // float contsigQ = 0.f; - // float lightsigQ = 0.f; if (iscie) { contL = 0.6 * params->locallab.spots.at(sp).contlcie; //0.6 less effect, no need 1. lightL = 0.4 * params->locallab.spots.at(sp).lightlcie; //0.4 less effect, no need 1. contQ = 0.5 * params->locallab.spots.at(sp).contqcie; //0.5 less effect, no need 1. lightQ = 0.4 * params->locallab.spots.at(sp).lightqcie; //0.4 less effect, no need 1. - // contsigQ = 0.5 * params->locallab.spots.at(sp).contsigqcie; //0.5 less effect, no need 1. - // lightsigQ = 0.4 * params->locallab.spots.at(sp).lightsigqcie; //0.4 less effect, no need 1. } else { contL = 0.6 * params->locallab.spots.at(sp).contl; //0.6 less effect, no need 1. lightL = 0.4 * params->locallab.spots.at(sp).lightl; //0.4 less effect, no need 1. @@ -2772,11 +2768,9 @@ void ImProcFunctions::ciecamloc_02float(const struct local_params& lp, int sp, L CAMBrightCurveJ /= 327.68f; Ciecam02::curveJfloat(lightQ, contQ, thQ, hist16Q, CAMBrightCurveQ); //brightness Q and contrast Q - // double KL = params->locallab.spots.at(sp).contlcie; - // double LK = params->locallab.spots.at(sp).lightlcie; lightsig = -35. * params->locallab.spots.at(sp).sigmoidldacie; contsig = 50. * params->locallab.spots.at(sp).sigmoidldacie; - Ciecam02::curveJfloat(lightsig, contsig, thQsig, hist16Q, CAMBrightCurveQsig); //brightness Q and contrast Q + Ciecam02::curveJfloat(lightsig, contsig, thQsig, hist16Q, CAMBrightCurveQsig); //brightness Q and contrast Q bypass. } diff --git a/rtgui/locallabtools2.cc b/rtgui/locallabtools2.cc index 5db3a9ff31..3a77f7cd30 100644 --- a/rtgui/locallabtools2.cc +++ b/rtgui/locallabtools2.cc @@ -8337,6 +8337,10 @@ Locallabcie::Locallabcie(): cieP1contBox->pack_start(*contqcie); cieP1contBox->pack_start(*contsigqcie); cieP1contBox->pack_start(*contthrescie); + + contsigqcie->hide(); + lightsigqcie->hide(); + cie1contFrame->add(*cieP1contBox); cieP1Box->pack_start(*cie1contFrame); ToolParamBlock* const cieP1colorBox = Gtk::manage(new ToolParamBlock());