Fixed bad behavior local contrast

This commit is contained in:
Desmis 2019-11-26 16:37:15 +01:00
parent 7217d8d020
commit abbeb63942
2 changed files with 3 additions and 3 deletions

View File

@ -9979,7 +9979,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o
LocallabParams locallabparams; LocallabParams locallabparams;
localContrastParams.enabled = true; localContrastParams.enabled = true;
localContrastParams.radius = params->locallab.spots.at(sp).lcradius; 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.darkness = params->locallab.spots.at(sp).lcdarkness;
localContrastParams.lightness = params->locallab.spots.at(sp).lightness; localContrastParams.lightness = params->locallab.spots.at(sp).lightness;
bool fftwlc = false; 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); // 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); transit_shapedetect(10, tmp1.get(), nullptr, bufchro, false, hueref, chromaref, lumaref, sobelref, 0.f, nullptr, lp, original, transformed, cx, cy, sk);
tmp1.reset(); tmp1.reset();

View File

@ -643,7 +643,7 @@ pe(nullptr)
ToolVBox* const panel = Gtk::manage(new ToolVBox()); ToolVBox* const panel = Gtk::manage(new ToolVBox());
const bool showtooltip = options.showtooltip; const bool showtooltip = options.showtooltip;
complexsoft = options.complexity; complexsoft = options.complexity;
printf("Complexsoft=%i\n", complexsoft); // printf("Complexsoft=%i\n", complexsoft);
CurveListener::setMulti(true); CurveListener::setMulti(true);
rtengine::procparams::LocallabParams::LocallabSpot defSpot; rtengine::procparams::LocallabParams::LocallabSpot defSpot;