Change settings Exposure PDE
This commit is contained in:
parent
4fc498a95a
commit
0319a93496
@ -991,6 +991,9 @@ void Crop::update(int todo)
|
|||||||
double hlcomprthresh = params.locallab.spots.at(sp).hlcomprthresh;
|
double hlcomprthresh = params.locallab.spots.at(sp).hlcomprthresh;
|
||||||
double shcompr = params.locallab.spots.at(sp).shcompr;
|
double shcompr = params.locallab.spots.at(sp).shcompr;
|
||||||
double br = params.locallab.spots.at(sp).lightness;
|
double br = params.locallab.spots.at(sp).lightness;
|
||||||
|
if(black < 0. && params.locallab.spots.at(sp).expMethod == "pde" ) {
|
||||||
|
black *= 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
double cont = params.locallab.spots.at(sp).contrast;
|
double cont = params.locallab.spots.at(sp).contrast;
|
||||||
double huere, chromare, lumare, huerefblu, chromarefblu, lumarefblu, sobelre;
|
double huere, chromare, lumare, huerefblu, chromarefblu, lumarefblu, sobelre;
|
||||||
|
@ -948,7 +948,9 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
|
|||||||
double shcompr = params->locallab.spots.at(sp).shcompr;
|
double shcompr = params->locallab.spots.at(sp).shcompr;
|
||||||
double br = params->locallab.spots.at(sp).lightness;
|
double br = params->locallab.spots.at(sp).lightness;
|
||||||
double cont = params->locallab.spots.at(sp).contrast;
|
double cont = params->locallab.spots.at(sp).contrast;
|
||||||
|
if(black < 0. && params->locallab.spots.at(sp).expMethod == "pde" ) {
|
||||||
|
black *= 1.5;
|
||||||
|
}
|
||||||
// Reference parameters computation
|
// Reference parameters computation
|
||||||
if (params->locallab.spots.at(sp).spotMethod == "exc") {
|
if (params->locallab.spots.at(sp).spotMethod == "exc") {
|
||||||
ipf.calc_ref(sp, reserv, reserv, 0, 0, pW, pH, scale, huerefblu, chromarefblu, lumarefblu, huere, chromare, lumare, sobelre, avge);
|
ipf.calc_ref(sp, reserv, reserv, 0, 0, pW, pH, scale, huerefblu, chromarefblu, lumarefblu, huere, chromare, lumare, sobelre, avge);
|
||||||
|
@ -9097,7 +9097,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o
|
|||||||
|
|
||||||
for (int y = 0; y < bfhr; y++) {
|
for (int y = 0; y < bfhr; y++) {
|
||||||
for (int x = 0; x < bfwr; x++) {
|
for (int x = 0; x < bfwr; x++) {
|
||||||
float L = LIM01(bufexpfin->L[y][x] / 32768.f);//chnage gamma for Laplacian
|
float L = LIM01(bufexpfin->L[y][x] / 32768.f);//change gamma for Laplacian
|
||||||
L = pow(L, gam);
|
L = pow(L, gam);
|
||||||
L *= 32768.f;
|
L *= 32768.f;
|
||||||
datain[y * bfwr + x] = L;
|
datain[y * bfwr + x] = L;
|
||||||
|
@ -2434,8 +2434,8 @@ LocallabParams::LocallabSpot::LocallabSpot() :
|
|||||||
expcomp(0.0),
|
expcomp(0.0),
|
||||||
hlcompr(0),
|
hlcompr(0),
|
||||||
hlcomprthresh(0),
|
hlcomprthresh(0),
|
||||||
black(0),
|
black(-6000),
|
||||||
shadex(0),
|
shadex(20),
|
||||||
shcompr(50),
|
shcompr(50),
|
||||||
expchroma(30),
|
expchroma(30),
|
||||||
warm(0),
|
warm(0),
|
||||||
@ -2455,10 +2455,10 @@ LocallabParams::LocallabSpot::LocallabSpot() :
|
|||||||
slomaskexp(0.0),
|
slomaskexp(0.0),
|
||||||
softradiusexp(0.0),
|
softradiusexp(0.0),
|
||||||
expMethod("std"),
|
expMethod("std"),
|
||||||
laplacexp(20.0),
|
laplacexp(40.0),
|
||||||
balanexp(0.8),
|
balanexp(0.75),
|
||||||
linear(0.0),
|
linear(0.3),
|
||||||
gamm(1.0),
|
gamm(0.4),
|
||||||
// Shadow highlight
|
// Shadow highlight
|
||||||
expshadhigh(false),
|
expshadhigh(false),
|
||||||
highlights(0),
|
highlights(0),
|
||||||
|
@ -1197,6 +1197,9 @@ private:
|
|||||||
double shcompr = params.locallab.spots.at(sp).shcompr;
|
double shcompr = params.locallab.spots.at(sp).shcompr;
|
||||||
double br = params.locallab.spots.at(sp).lightness;
|
double br = params.locallab.spots.at(sp).lightness;
|
||||||
double cont = params.locallab.spots.at(sp).contrast;
|
double cont = params.locallab.spots.at(sp).contrast;
|
||||||
|
if(black < 0. && params.locallab.spots.at(sp).expMethod == "pde" ) {
|
||||||
|
black *= 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
// Reference parameters computation
|
// Reference parameters computation
|
||||||
double huere, chromare, lumare, huerefblu, chromarefblu, lumarefblu, sobelre;
|
double huere, chromare, lumare, huerefblu, chromarefblu, lumarefblu, sobelre;
|
||||||
|
@ -194,8 +194,8 @@ Locallab::Locallab():
|
|||||||
expcomp(Gtk::manage(new Adjuster(M("TP_EXPOSURE_EXPCOMP"), -2.0, 4.0, 0.05, 0.0))),
|
expcomp(Gtk::manage(new Adjuster(M("TP_EXPOSURE_EXPCOMP"), -2.0, 4.0, 0.05, 0.0))),
|
||||||
hlcompr(Gtk::manage(new Adjuster(M("TP_EXPOSURE_COMPRHIGHLIGHTS"), 0, 500, 1, 0))),
|
hlcompr(Gtk::manage(new Adjuster(M("TP_EXPOSURE_COMPRHIGHLIGHTS"), 0, 500, 1, 0))),
|
||||||
hlcomprthresh(Gtk::manage(new Adjuster(M("TP_EXPOSURE_COMPRHIGHLIGHTSTHRESHOLD"), 0, 100, 1, 0))),
|
hlcomprthresh(Gtk::manage(new Adjuster(M("TP_EXPOSURE_COMPRHIGHLIGHTSTHRESHOLD"), 0, 100, 1, 0))),
|
||||||
black(Gtk::manage(new Adjuster(M("TP_EXPOSURE_BLACKLEVEL"), -30000, 32768, 50, 0))),
|
black(Gtk::manage(new Adjuster(M("TP_EXPOSURE_BLACKLEVEL"), -16384, 32768, 10, -6000))),
|
||||||
shadex(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SHADEX"), 0, 100, 1, 0))),
|
shadex(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SHADEX"), 0, 100, 1, 20))),
|
||||||
shcompr(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SHADEXCOMP"), 0, 100, 1, 50))),
|
shcompr(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SHADEXCOMP"), 0, 100, 1, 50))),
|
||||||
expchroma(Gtk::manage(new Adjuster(M("TP_LOCALLAB_EXPCHROMA"), -50, 100, 1, 30))),
|
expchroma(Gtk::manage(new Adjuster(M("TP_LOCALLAB_EXPCHROMA"), -50, 100, 1, 30))),
|
||||||
warm(Gtk::manage(new Adjuster(M("TP_LOCALLAB_WARM"), -100., 100., 1., 0., Gtk::manage(new RTImage("circle-blue-small.png")), Gtk::manage(new RTImage("circle-orange-small.png"))))),
|
warm(Gtk::manage(new Adjuster(M("TP_LOCALLAB_WARM"), -100., 100., 1., 0., Gtk::manage(new RTImage("circle-blue-small.png")), Gtk::manage(new RTImage("circle-orange-small.png"))))),
|
||||||
@ -208,10 +208,10 @@ Locallab::Locallab():
|
|||||||
gammaskexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_GAMMASKCOL"), 0.25, 4.0, 0.01, 1.))),
|
gammaskexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_GAMMASKCOL"), 0.25, 4.0, 0.01, 1.))),
|
||||||
slomaskexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SLOMASKCOL"), 0.0, 15.0, 0.1, 0.))),
|
slomaskexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SLOMASKCOL"), 0.0, 15.0, 0.1, 0.))),
|
||||||
softradiusexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SOFTRADIUSCOL"), 0.0, 100.0, 0.5, 0.))),
|
softradiusexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SOFTRADIUSCOL"), 0.0, 100.0, 0.5, 0.))),
|
||||||
laplacexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_LAPLACEXP"), 0.0, 100.0, 0.1, 20.))),
|
laplacexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_LAPLACEXP"), 0.0, 100.0, 0.1, 40.))),
|
||||||
balanexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_BALANEXP"), 0.2, 1.2, 0.01, 0.8))),
|
balanexp(Gtk::manage(new Adjuster(M("TP_LOCALLAB_BALANEXP"), 0.2, 1.2, 0.01, 0.75))),
|
||||||
linear(Gtk::manage(new Adjuster(M("TP_LOCALLAB_LINEAR"), 0., 1., 0.01, 0.))),
|
linear(Gtk::manage(new Adjuster(M("TP_LOCALLAB_LINEAR"), 0., 1., 0.01, 0.3))),
|
||||||
gamm(Gtk::manage(new Adjuster(M("TP_LOCALLAB_GAMM"), 0.1, 2., 0.01, 1.))),
|
gamm(Gtk::manage(new Adjuster(M("TP_LOCALLAB_GAMM"), 0.2, 1.3, 0.01, 0.4))),
|
||||||
//Shadow hightlights
|
//Shadow hightlights
|
||||||
highlights(Gtk::manage(new Adjuster(M("TP_SHADOWSHLIGHTS_HIGHLIGHTS"), 0, 100, 1, 0))),
|
highlights(Gtk::manage(new Adjuster(M("TP_SHADOWSHLIGHTS_HIGHLIGHTS"), 0, 100, 1, 0))),
|
||||||
h_tonalwidth(Gtk::manage(new Adjuster(M("TP_SHADOWSHLIGHTS_HLTONALW"), 10, 100, 1, 70))),
|
h_tonalwidth(Gtk::manage(new Adjuster(M("TP_SHADOWSHLIGHTS_HLTONALW"), 10, 100, 1, 70))),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user