From abbeb63942f2810fcaacb994b6b23e6f45fd8f11 Mon Sep 17 00:00:00 2001 From: Desmis Date: Tue, 26 Nov 2019 16:37:15 +0100 Subject: [PATCH] Fixed bad behavior local contrast --- rtengine/iplocallab.cc | 4 ++-- rtgui/locallab.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 8f7461877..2533ef0f8 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -9979,7 +9979,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o LocallabParams locallabparams; localContrastParams.enabled = true; localContrastParams.radius = params->locallab.spots.at(sp).lcradius; - localContrastParams.amount = params->locallab.spots.at(sp).lcamount; + localContrastParams.amount = 0.01f * params->locallab.spots.at(sp).lcamount; localContrastParams.darkness = params->locallab.spots.at(sp).lcdarkness; localContrastParams.lightness = params->locallab.spots.at(sp).lightness; bool fftwlc = false; @@ -10309,7 +10309,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o // not good transit_shapedetect2(0, tmp1.get(), bufgb.get(), nullptr, hueref, chromaref, lumaref, sobelref, 0.f, nullptr, lp, original, transformed, cx, cy, sk); - bufgb.reset(); + // bufgb.reset(); transit_shapedetect(10, tmp1.get(), nullptr, bufchro, false, hueref, chromaref, lumaref, sobelref, 0.f, nullptr, lp, original, transformed, cx, cy, sk); tmp1.reset(); diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index 3f7377ee2..e3ae4ad23 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -643,7 +643,7 @@ pe(nullptr) ToolVBox* const panel = Gtk::manage(new ToolVBox()); const bool showtooltip = options.showtooltip; complexsoft = options.complexity; - printf("Complexsoft=%i\n", complexsoft); + // printf("Complexsoft=%i\n", complexsoft); CurveListener::setMulti(true); rtengine::procparams::LocallabParams::LocallabSpot defSpot;