Fix for NR gamma, NR Ldetail history message and History NR decimal values
This commit is contained in:
@@ -383,6 +383,7 @@ HISTORY_MSG_163;RGB Curves - R
|
|||||||
HISTORY_MSG_164;RGB Curves - G
|
HISTORY_MSG_164;RGB Curves - G
|
||||||
HISTORY_MSG_165;RGB Curves - B
|
HISTORY_MSG_165;RGB Curves - B
|
||||||
HISTORY_MSG_166;Neutral levels
|
HISTORY_MSG_166;Neutral levels
|
||||||
|
HISTORY_MSG_166;NR - luminance detail
|
||||||
HISTORY_NEWSNAPSHOTAS;As...
|
HISTORY_NEWSNAPSHOTAS;As...
|
||||||
HISTORY_NEWSNAPSHOT;Add
|
HISTORY_NEWSNAPSHOT;Add
|
||||||
HISTORY_NEWSSDIALOGLABEL;Label of the snapshot:
|
HISTORY_NEWSSDIALOGLABEL;Label of the snapshot:
|
||||||
|
@@ -244,7 +244,7 @@ class WBParams {
|
|||||||
double luma;
|
double luma;
|
||||||
double Ldetail;
|
double Ldetail;
|
||||||
double chroma;
|
double chroma;
|
||||||
float gamma;
|
double gamma;
|
||||||
double expcomp;
|
double expcomp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,7 +106,7 @@ void DirPyrDenoise::setDefaults (const ProcParams* defParams, const ParamsEdited
|
|||||||
luma->setDefault (defParams->dirpyrDenoise.luma);
|
luma->setDefault (defParams->dirpyrDenoise.luma);
|
||||||
Ldetail->setDefault (defParams->dirpyrDenoise.Ldetail);
|
Ldetail->setDefault (defParams->dirpyrDenoise.Ldetail);
|
||||||
chroma->setDefault (defParams->dirpyrDenoise.chroma);
|
chroma->setDefault (defParams->dirpyrDenoise.chroma);
|
||||||
gamma->setDefault (defParams->dirpyrDenoise.chroma);
|
gamma->setDefault (defParams->dirpyrDenoise.gamma);
|
||||||
|
|
||||||
if (pedited) {
|
if (pedited) {
|
||||||
luma->setDefaultEditedState (pedited->dirpyrDenoise.luma ? Edited : UnEdited);
|
luma->setDefaultEditedState (pedited->dirpyrDenoise.luma ? Edited : UnEdited);
|
||||||
@@ -124,16 +124,18 @@ void DirPyrDenoise::setDefaults (const ProcParams* defParams, const ParamsEdited
|
|||||||
|
|
||||||
void DirPyrDenoise::adjusterChanged (Adjuster* a, double newval) {
|
void DirPyrDenoise::adjusterChanged (Adjuster* a, double newval) {
|
||||||
|
|
||||||
if (listener && enabled->get_active()) {
|
Glib::ustring costr;
|
||||||
|
costr = Glib::ustring::format (std::setw(3), std::fixed, std::setprecision(2), a->getValue());
|
||||||
|
|
||||||
|
if (listener && enabled->get_active()) {
|
||||||
if (a==Ldetail)
|
if (a==Ldetail)
|
||||||
listener->panelChanged (EvDPDNLdetail, Glib::ustring::format ((int)a->getValue()));
|
listener->panelChanged (EvDPDNLdetail, costr);
|
||||||
else if (a==luma)
|
else if (a==luma)
|
||||||
listener->panelChanged (EvDPDNLuma, Glib::ustring::format ((int)a->getValue()));
|
listener->panelChanged (EvDPDNLuma, costr);
|
||||||
else if (a==chroma)
|
else if (a==chroma)
|
||||||
listener->panelChanged (EvDPDNChroma, Glib::ustring::format ((int)a->getValue()));
|
listener->panelChanged (EvDPDNChroma, costr);
|
||||||
else if (a==gamma)
|
else if (a==gamma)
|
||||||
listener->panelChanged (EvDPDNGamma, Glib::ustring::format (std::setw(2), std::fixed, std::setprecision(2), a->getValue()));
|
listener->panelChanged (EvDPDNGamma, costr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,6 +168,7 @@ void DirPyrDenoise::setBatchMode (bool batchMode) {
|
|||||||
luma->showEditedCB ();
|
luma->showEditedCB ();
|
||||||
Ldetail->showEditedCB ();
|
Ldetail->showEditedCB ();
|
||||||
chroma->showEditedCB ();
|
chroma->showEditedCB ();
|
||||||
|
gamma->showEditedCB ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DirPyrDenoise::setAdjusterBehavior (bool chrolumaadd, bool gammaadd) {
|
void DirPyrDenoise::setAdjusterBehavior (bool chrolumaadd, bool gammaadd) {
|
||||||
|
Reference in New Issue
Block a user