Luminance Denoise Curve issue2463
This commit is contained in:
@@ -19,11 +19,13 @@
|
||||
#include "dirpyrdenoise.h"
|
||||
#include <iomanip>
|
||||
#include <cmath>
|
||||
#include "edit.h"
|
||||
|
||||
using namespace rtengine;
|
||||
using namespace rtengine::procparams;
|
||||
|
||||
DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
std::vector<GradientMilestone> milestones;
|
||||
|
||||
enabled = Gtk::manage (new Gtk::CheckButton (M("GENERAL_ENABLED")));
|
||||
enabled->set_tooltip_text (M("TP_DIRPYRDENOISE_ENABLED_TOOLTIP"));
|
||||
@@ -44,6 +46,19 @@ DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
chroma = Gtk::manage (new Adjuster (M("TP_DIRPYRDENOISE_CHROMA"), 0, 100, 0.01, 15));
|
||||
redchro = Gtk::manage (new Adjuster (M("TP_DIRPYRDENOISE_RED"), -100, 100, 0.1, 0));
|
||||
bluechro = Gtk::manage (new Adjuster (M("TP_DIRPYRDENOISE_BLUE"), -100, 100, 0.1, 0));
|
||||
std::vector<double> defaultCurve;
|
||||
|
||||
NoiscurveEditorG = new CurveEditorGroup (options.lastDenoiseCurvesDir, M("TP_DIRPYRDENOISE_LCURVE"));
|
||||
//curveEditorG = new CurveEditorGroup (options.lastLabCurvesDir);
|
||||
NoiscurveEditorG->setCurveListener (this);
|
||||
rtengine::DirPyrDenoiseParams::getDefaultNoisCurve(defaultCurve);
|
||||
lshape = static_cast<FlatCurveEditor*>(NoiscurveEditorG->addCurve(CT_Flat, "", NULL, false));
|
||||
lshape->setIdentityValue(0.);
|
||||
lshape->setResetCurve(FlatCurveType(defaultCurve.at(0)), defaultCurve);
|
||||
|
||||
lshape->setTooltip(M("TP_DIRPYRDENOISE_CURVEEDITOR_L_TOOLTIP"));
|
||||
//lshape->setEditID(EUID_Lab_LCurve, BT_SINGLEPLANE_FLOAT);
|
||||
|
||||
|
||||
gamma = Gtk::manage (new Adjuster (M("TP_DIRPYRDENOISE_GAMMA"), 1.0, 3.0, 0.01, 1.7));
|
||||
gamma->set_tooltip_text (M("TP_DIRPYRDENOISE_GAMMA_TOOLTIP"));
|
||||
@@ -77,17 +92,17 @@ DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
bluechro->setAdjusterListener (this);
|
||||
|
||||
gamma->setAdjusterListener (this);
|
||||
passes->setAdjusterListener (this);
|
||||
|
||||
luma->show();
|
||||
Ldetail->show();
|
||||
|
||||
|
||||
chroma->show();
|
||||
redchro->show();
|
||||
bluechro->show();
|
||||
// perform->show();
|
||||
gamma->show();
|
||||
// perform->set_active (true);
|
||||
passes->show();
|
||||
|
||||
enhance = Gtk::manage (new Gtk::CheckButton (M("TP_DIRPYRDENOISE_ENH")));
|
||||
enhance->set_active (false);
|
||||
@@ -102,7 +117,6 @@ DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
hsep2->show ();
|
||||
|
||||
methodmed = Gtk::manage (new MyComboBoxText ());
|
||||
//methodmed->append_text (M("TP_DIRPYRDENOISE_NONE"));
|
||||
methodmed->append_text (M("TP_DIRPYRDENOISE_LM"));
|
||||
methodmed->append_text (M("TP_DIRPYRDENOISE_LABM"));
|
||||
methodmed->append_text (M("TP_DIRPYRDENOISE_RGBM"));
|
||||
@@ -131,24 +145,60 @@ DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
|
||||
ctboxm = Gtk::manage (new Gtk::HBox ());
|
||||
Gtk::Label* labmm = Gtk::manage (new Gtk::Label (M("TP_DIRPYRDENOISE_MEDMETHOD")));
|
||||
ctboxm->pack_start (*labmm, Gtk::PACK_SHRINK, 4);
|
||||
ctboxm->pack_start (*labmm, Gtk::PACK_SHRINK, 1);
|
||||
|
||||
ctbox = Gtk::manage (new Gtk::HBox ());
|
||||
Gtk::Label* labm = Gtk::manage (new Gtk::Label (M("TP_DIRPYRDENOISE_MEDTYPE")));
|
||||
ctbox->pack_start (*labm, Gtk::PACK_SHRINK, 4);
|
||||
ctbox->pack_start (*labm, Gtk::PACK_SHRINK, 1);
|
||||
|
||||
ctboxrgb = Gtk::manage (new Gtk::HBox ());
|
||||
Gtk::Label* labrgb = Gtk::manage (new Gtk::Label (M("TP_DIRPYRDENOISE_MEDTYPE")));
|
||||
ctboxrgb->pack_start (*labrgb, Gtk::PACK_SHRINK, 4);
|
||||
ctboxrgb->pack_start (*labrgb, Gtk::PACK_SHRINK, 1);
|
||||
|
||||
|
||||
milestones.push_back( GradientMilestone(0., 0., 0., 0.) );
|
||||
milestones.push_back( GradientMilestone(1., 1., 1., 1.) );
|
||||
lshape->setBottomBarBgGradient(milestones);
|
||||
//lshape->setLeftBarBgGradient(milestones);
|
||||
milestones.push_back( GradientMilestone(0., 0., 0., 0.) );
|
||||
milestones.push_back( GradientMilestone(1., 1., 1., 1.) );
|
||||
NoiscurveEditorG->curveListComplete();
|
||||
|
||||
Gtk::HSeparator *hsep4 = Gtk::manage (new Gtk::HSeparator());
|
||||
hsep4->show ();
|
||||
|
||||
Gtk::HBox* hb11 = Gtk::manage (new Gtk::HBox ());
|
||||
hb11->pack_start (*Gtk::manage (new Gtk::Label ( M("TP_DIRPYRDENOISE_METHOD11") +": ")),Gtk::PACK_SHRINK, 4);
|
||||
hb11->set_tooltip_markup (M("TP_DIRPYRDENOISE_METHOD11_TOOLTIP"));
|
||||
|
||||
smethod = Gtk::manage (new MyComboBoxText ());
|
||||
smethod->append_text (M("TP_DIRPYRDENOISE_SHAL"));
|
||||
// smethod->append_text (M("TP_DIRPYRDENOISE_SHBI"));
|
||||
smethod->append_text (M("TP_DIRPYRDENOISE_SHALBI"));
|
||||
// smethod->append_text (M("TP_DIRPYRDENOISE_SHALAL"));
|
||||
// smethod->append_text (M("TP_DIRPYRDENOISE_SHBIBI"));
|
||||
smethod->set_active(1);
|
||||
hb11->pack_start (*smethod, Gtk::PACK_EXPAND_WIDGET, 4);
|
||||
// pack_start( *hb11, Gtk::PACK_SHRINK, 4);
|
||||
smethodconn = smethod->signal_changed().connect ( sigc::mem_fun(*this, &DirPyrDenoise::smethodChanged) );
|
||||
|
||||
passes = Gtk::manage (new Adjuster (M("TP_DIRPYRDENOISE_PASSE"), 1.0, 3.0, 1., 1.));
|
||||
passes->set_tooltip_text (M("TP_DIRPYRDENOISE_PASSES_TOOLTIP"));
|
||||
passes->setAdjusterListener (this);
|
||||
passes->show();
|
||||
|
||||
pack_start (*luma);
|
||||
pack_start (*NoiscurveEditorG, Gtk::PACK_SHRINK, 4);
|
||||
pack_start (*Ldetail);
|
||||
pack_start (*chroma);
|
||||
pack_start (*redchro);
|
||||
pack_start (*bluechro);
|
||||
|
||||
pack_start (*gamma);
|
||||
pack_start (*enhance);
|
||||
//pack_start (*enhance);
|
||||
pack_start (*hsep4);
|
||||
|
||||
pack_start( *hb11, Gtk::PACK_SHRINK, 4);
|
||||
|
||||
pack_start (*hsep2);
|
||||
pack_start (*median);
|
||||
@@ -159,7 +209,8 @@ DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
pack_start (*ctboxm);
|
||||
pack_start (*ctbox);
|
||||
pack_start (*ctboxrgb);
|
||||
pack_start (*passes);
|
||||
pack_start (*passes,Gtk::PACK_SHRINK, 1);
|
||||
|
||||
|
||||
|
||||
// pack_start (*perform);
|
||||
@@ -168,10 +219,17 @@ DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this), lastenhance(false) {
|
||||
ctboxrgb->hide();
|
||||
}
|
||||
|
||||
DirPyrDenoise::~DirPyrDenoise () {
|
||||
delete NoiscurveEditorG;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DirPyrDenoise::read (const ProcParams* pp, const ParamsEdited* pedited) {
|
||||
|
||||
disableListener ();
|
||||
dmethodconn.block(true);
|
||||
smethodconn.block(true);
|
||||
enaConn.block (true);
|
||||
medmethodconn.block(true);
|
||||
rgbmethodconn.block(true);
|
||||
@@ -183,6 +241,19 @@ void DirPyrDenoise::read (const ProcParams* pp, const ParamsEdited* pedited) {
|
||||
else if (pp->dirpyrDenoise.dmethod=="Lab")
|
||||
dmethod->set_active (1);
|
||||
|
||||
|
||||
smethod->set_active (0);
|
||||
if (pp->dirpyrDenoise.smethod=="shal")
|
||||
smethod->set_active (0);
|
||||
// else if (pp->dirpyrDenoise.smethod=="shbi")
|
||||
// smethod->set_active (1);
|
||||
else if (pp->dirpyrDenoise.smethod=="shalbi")
|
||||
smethod->set_active (1);
|
||||
// else if (pp->dirpyrDenoise.smethod=="shalal")
|
||||
// smethod->set_active (3);
|
||||
// else if (pp->dirpyrDenoise.smethod=="shbibi")
|
||||
// smethod->set_active (4);
|
||||
|
||||
methodmed->set_active (0);
|
||||
// if (pp->dirpyrDenoise.methodmed=="none")
|
||||
// methodmed->set_active (0);
|
||||
@@ -224,6 +295,8 @@ void DirPyrDenoise::read (const ProcParams* pp, const ParamsEdited* pedited) {
|
||||
if (pedited) {
|
||||
if (!pedited->dirpyrDenoise.dmethod)
|
||||
dmethod->set_active (2);
|
||||
if (!pedited->dirpyrDenoise.smethod)
|
||||
smethod->set_active (2);
|
||||
if (!pedited->dirpyrDenoise.rgbmethod)
|
||||
rgbmethod->set_active (2);
|
||||
if (!pedited->dirpyrDenoise.medmethod)
|
||||
@@ -263,16 +336,24 @@ void DirPyrDenoise::read (const ProcParams* pp, const ParamsEdited* pedited) {
|
||||
|
||||
gamma->setValue (pp->dirpyrDenoise.gamma);
|
||||
passes->setValue (pp->dirpyrDenoise.passes);
|
||||
lshape->setCurve (pp->dirpyrDenoise.lcurve);
|
||||
|
||||
enaConn.block (false);
|
||||
dmethodconn.block(false);
|
||||
smethodconn.block(false);
|
||||
medmethodconn.block(false);
|
||||
rgbmethodconn.block(false);
|
||||
methodmedconn.block(false);
|
||||
enableListener ();
|
||||
|
||||
}
|
||||
|
||||
void DirPyrDenoise::setEditProvider (EditDataProvider *provider) {
|
||||
lshape->setEditProvider(provider);
|
||||
}
|
||||
void DirPyrDenoise::autoOpenCurve () {
|
||||
// Open up the first curve if selected
|
||||
bool active = lshape->openIfNonlinear();
|
||||
}
|
||||
void DirPyrDenoise::write (ProcParams* pp, ParamsEdited* pedited) {
|
||||
|
||||
pp->dirpyrDenoise.luma = luma->getValue ();
|
||||
@@ -286,9 +367,11 @@ void DirPyrDenoise::write (ProcParams* pp, ParamsEdited* pedited) {
|
||||
pp->dirpyrDenoise.enhance = enhance->get_active();
|
||||
// pp->dirpyrDenoise.perform = perform->get_active();
|
||||
pp->dirpyrDenoise.median = median->get_active();
|
||||
pp->dirpyrDenoise.lcurve = lshape->getCurve ();
|
||||
|
||||
if (pedited) {
|
||||
pedited->dirpyrDenoise.dmethod = dmethod->get_active_row_number() != 2;
|
||||
pedited->dirpyrDenoise.smethod = smethod->get_active_row_number() != 2;
|
||||
pedited->dirpyrDenoise.medmethod = medmethod->get_active_row_number() != 4;
|
||||
pedited->dirpyrDenoise.rgbmethod = rgbmethod->get_active_row_number() != 2;
|
||||
pedited->dirpyrDenoise.methodmed = methodmed->get_active_row_number() != 2;
|
||||
@@ -302,6 +385,8 @@ void DirPyrDenoise::write (ProcParams* pp, ParamsEdited* pedited) {
|
||||
pedited->dirpyrDenoise.enabled = !enabled->get_inconsistent();
|
||||
pedited->dirpyrDenoise.enhance = !enhance->get_inconsistent();
|
||||
pedited->dirpyrDenoise.median = !median->get_inconsistent();
|
||||
pedited->dirpyrDenoise.lcurve = !lshape->isUnChanged ();
|
||||
|
||||
// pedited->dirpyrDenoise.perform = !perform->get_inconsistent();
|
||||
}
|
||||
if (dmethod->get_active_row_number()==0)
|
||||
@@ -309,6 +394,17 @@ void DirPyrDenoise::write (ProcParams* pp, ParamsEdited* pedited) {
|
||||
else if (dmethod->get_active_row_number()==1)
|
||||
pp->dirpyrDenoise.dmethod = "Lab";
|
||||
|
||||
if (smethod->get_active_row_number()==0)
|
||||
pp->dirpyrDenoise.smethod = "shal";
|
||||
// else if (smethod->get_active_row_number()==1)
|
||||
// pp->dirpyrDenoise.smethod = "shbi";
|
||||
else if (smethod->get_active_row_number()==1)
|
||||
pp->dirpyrDenoise.smethod = "shalbi";
|
||||
// else if (smethod->get_active_row_number()==3)
|
||||
// pp->dirpyrDenoise.smethod = "shalal";
|
||||
// else if (smethod->get_active_row_number()==4)
|
||||
// pp->dirpyrDenoise.smethod = "shbibi";
|
||||
|
||||
// if (methodmed->get_active_row_number()==0)
|
||||
// pp->dirpyrDenoise.methodmed = "none";
|
||||
if (methodmed->get_active_row_number()==0)
|
||||
@@ -342,6 +438,13 @@ void DirPyrDenoise::write (ProcParams* pp, ParamsEdited* pedited) {
|
||||
|
||||
}
|
||||
|
||||
void DirPyrDenoise::curveChanged () {
|
||||
|
||||
if (listener && enabled->get_active()) {
|
||||
listener->panelChanged (EvDPDNLCurve, M("HISTORY_CUSTOMCURVE"));
|
||||
}
|
||||
}
|
||||
|
||||
void DirPyrDenoise::dmethodChanged () {
|
||||
|
||||
if (listener && (multiImage||enabled->get_active()) ) {
|
||||
@@ -349,6 +452,13 @@ void DirPyrDenoise::dmethodChanged () {
|
||||
}
|
||||
}
|
||||
|
||||
void DirPyrDenoise::smethodChanged () {
|
||||
|
||||
if (listener && (multiImage||enabled->get_active()) ) {
|
||||
listener->panelChanged (EvDPDNsmet, smethod->get_active_text ());
|
||||
}
|
||||
}
|
||||
|
||||
void DirPyrDenoise::medmethodChanged () {
|
||||
|
||||
|
||||
@@ -539,7 +649,10 @@ void DirPyrDenoise::setBatchMode (bool batchMode) {
|
||||
bluechro->showEditedCB ();
|
||||
gamma->showEditedCB ();
|
||||
passes->showEditedCB ();
|
||||
NoiscurveEditorG->setBatchMode (batchMode);
|
||||
|
||||
dmethod->append_text (M("GENERAL_UNCHANGED"));
|
||||
smethod->append_text (M("GENERAL_UNCHANGED"));
|
||||
medmethod->append_text (M("GENERAL_UNCHANGED"));
|
||||
methodmed->append_text (M("GENERAL_UNCHANGED"));
|
||||
rgbmethod->append_text (M("GENERAL_UNCHANGED"));
|
||||
|
@@ -22,10 +22,15 @@
|
||||
#include <gtkmm.h>
|
||||
#include "adjuster.h"
|
||||
#include "toolpanel.h"
|
||||
#include "curveeditor.h"
|
||||
#include "curveeditorgroup.h"
|
||||
#include "colorprovider.h"
|
||||
#include "guiutils.h"
|
||||
|
||||
class DirPyrDenoise : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel {
|
||||
class DirPyrDenoise : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel, public CurveListener, public ColorProvider {
|
||||
|
||||
protected:
|
||||
CurveEditorGroup* NoiscurveEditorG;
|
||||
Adjuster* luma;
|
||||
Adjuster* Ldetail;
|
||||
Adjuster* chroma;
|
||||
@@ -33,6 +38,7 @@ class DirPyrDenoise : public ToolParamBlock, public AdjusterListener, public Fol
|
||||
Adjuster* bluechro;
|
||||
Adjuster* gamma;
|
||||
Adjuster* passes;
|
||||
FlatCurveEditor* lshape;
|
||||
|
||||
Gtk::CheckButton* enabled;
|
||||
bool lastEnabled;
|
||||
@@ -48,6 +54,8 @@ class DirPyrDenoise : public ToolParamBlock, public AdjusterListener, public Fol
|
||||
// sigc::connection perfconn;
|
||||
MyComboBoxText* dmethod;
|
||||
sigc::connection dmethodconn;
|
||||
MyComboBoxText* smethod;
|
||||
sigc::connection smethodconn;
|
||||
MyComboBoxText* medmethod;
|
||||
sigc::connection medmethodconn;
|
||||
Gtk::HBox* ctbox;
|
||||
@@ -62,11 +70,15 @@ class DirPyrDenoise : public ToolParamBlock, public AdjusterListener, public Fol
|
||||
public:
|
||||
|
||||
DirPyrDenoise ();
|
||||
~DirPyrDenoise ();
|
||||
|
||||
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited=NULL);
|
||||
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited=NULL);
|
||||
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited=NULL);
|
||||
void setBatchMode (bool batchMode);
|
||||
void curveChanged ();
|
||||
void setEditProvider (EditDataProvider *provider);
|
||||
void autoOpenCurve ();
|
||||
|
||||
void adjusterChanged (Adjuster* a, double newval);
|
||||
void enabledChanged ();
|
||||
@@ -77,6 +89,7 @@ class DirPyrDenoise : public ToolParamBlock, public AdjusterListener, public Fol
|
||||
void medmethodChanged ();
|
||||
void methodmedChanged ();
|
||||
void rgbmethodChanged ();
|
||||
void smethodChanged ();
|
||||
|
||||
void setAdjusterBehavior (bool lumaadd, bool lumdetadd, bool chromaadd, bool chromaredadd, bool chromablueadd, bool gammaadd, bool passesadd);
|
||||
void trimValues (rtengine::procparams::ProcParams* pp);
|
||||
|
@@ -146,6 +146,8 @@ void Options::updatePaths() {
|
||||
lastRgbCurvesDir = preferredPath;
|
||||
if (lastLabCurvesDir.empty() || !safe_file_test (lastLabCurvesDir, Glib::FILE_TEST_EXISTS) || !safe_file_test (lastLabCurvesDir, Glib::FILE_TEST_IS_DIR))
|
||||
lastLabCurvesDir = preferredPath;
|
||||
if (lastDenoiseCurvesDir.empty() || !safe_file_test (lastDenoiseCurvesDir, Glib::FILE_TEST_EXISTS) || !safe_file_test (lastDenoiseCurvesDir, Glib::FILE_TEST_IS_DIR))
|
||||
lastDenoiseCurvesDir = preferredPath;
|
||||
if (lastPFCurvesDir.empty() || !safe_file_test (lastPFCurvesDir, Glib::FILE_TEST_EXISTS) || !safe_file_test (lastPFCurvesDir, Glib::FILE_TEST_IS_DIR))
|
||||
lastPFCurvesDir = preferredPath;
|
||||
if (lastHsvCurvesDir.empty() || !safe_file_test (lastHsvCurvesDir, Glib::FILE_TEST_EXISTS) || !safe_file_test (lastHsvCurvesDir, Glib::FILE_TEST_IS_DIR))
|
||||
@@ -554,6 +556,7 @@ void Options::setDefaults () {
|
||||
// at the end of the "updatePaths" method.
|
||||
lastRgbCurvesDir = "";
|
||||
lastLabCurvesDir = "";
|
||||
lastDenoiseCurvesDir = "";
|
||||
lastPFCurvesDir = "";
|
||||
lastHsvCurvesDir = "";
|
||||
lastToneCurvesDir = "";
|
||||
@@ -859,6 +862,7 @@ if (keyFile.has_group ("Dialogs")) {
|
||||
safeDirGet(keyFile, "Dialogs", "LastFlatfieldDir", lastFlatfieldDir);
|
||||
safeDirGet(keyFile, "Dialogs", "LastRgbCurvesDir", lastRgbCurvesDir);
|
||||
safeDirGet(keyFile, "Dialogs", "LastLabCurvesDir", lastLabCurvesDir);
|
||||
safeDirGet(keyFile, "Dialogs", "LastDenoiseCurvesDir", lastDenoiseCurvesDir);
|
||||
safeDirGet(keyFile, "Dialogs", "LastPFCurvesDir", lastPFCurvesDir);
|
||||
safeDirGet(keyFile, "Dialogs", "LastHsvCurvesDir", lastHsvCurvesDir);
|
||||
safeDirGet(keyFile, "Dialogs", "LastBWCurvesDir", lastBWCurvesDir);
|
||||
@@ -1147,6 +1151,7 @@ int Options::saveToFile (Glib::ustring fname) {
|
||||
keyFile.set_string ("Dialogs", "LastFlatfieldDir", lastFlatfieldDir);
|
||||
keyFile.set_string ("Dialogs", "LastRgbCurvesDir", lastRgbCurvesDir);
|
||||
keyFile.set_string ("Dialogs", "LastLabCurvesDir", lastLabCurvesDir);
|
||||
keyFile.set_string ("Dialogs", "LastDenoiseCurvesDir", lastDenoiseCurvesDir);
|
||||
keyFile.set_string ("Dialogs", "LastPFCurvesDir", lastPFCurvesDir);
|
||||
keyFile.set_string ("Dialogs", "LastHsvCurvesDir", lastHsvCurvesDir);
|
||||
keyFile.set_string ("Dialogs", "LastBWCurvesDir", lastBWCurvesDir);
|
||||
|
@@ -112,11 +112,11 @@ class Options {
|
||||
int historyPanelWidth;
|
||||
Glib::ustring font;
|
||||
int windowWidth;
|
||||
int windowHeight;
|
||||
int windowX;
|
||||
int windowHeight;
|
||||
int windowX;
|
||||
int windowY;
|
||||
bool windowMaximized;
|
||||
int detailWindowWidth;
|
||||
bool windowMaximized;
|
||||
int detailWindowWidth;
|
||||
int detailWindowHeight;
|
||||
int dirBrowserWidth;
|
||||
int dirBrowserHeight;
|
||||
@@ -263,6 +263,7 @@ class Options {
|
||||
Glib::ustring lastFlatfieldDir;
|
||||
Glib::ustring lastRgbCurvesDir;
|
||||
Glib::ustring lastLabCurvesDir;
|
||||
Glib::ustring lastDenoiseCurvesDir;
|
||||
Glib::ustring lastPFCurvesDir;
|
||||
Glib::ustring lastHsvCurvesDir;
|
||||
Glib::ustring lastToneCurvesDir;
|
||||
|
@@ -181,6 +181,7 @@ void ParamsEdited::set (bool v) {
|
||||
dirpyrDenoise.enabled = v;
|
||||
dirpyrDenoise.enhance = v;
|
||||
// dirpyrDenoise.perform = v;
|
||||
dirpyrDenoise.lcurve = v;
|
||||
dirpyrDenoise.median = v;
|
||||
dirpyrDenoise.luma = v;
|
||||
dirpyrDenoise.Ldetail = v;
|
||||
@@ -190,6 +191,7 @@ void ParamsEdited::set (bool v) {
|
||||
dirpyrDenoise.gamma = v;
|
||||
dirpyrDenoise.passes = v;
|
||||
dirpyrDenoise.dmethod = v;
|
||||
dirpyrDenoise.smethod = v;
|
||||
dirpyrDenoise.medmethod = v;
|
||||
dirpyrDenoise.methodmed = v;
|
||||
dirpyrDenoise.rgbmethod = v;
|
||||
@@ -512,6 +514,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
dirpyrDenoise.median = dirpyrDenoise.median && p.dirpyrDenoise.median == other.dirpyrDenoise.median;
|
||||
// dirpyrDenoise.perform = dirpyrDenoise.perform && p.dirpyrDenoise.perform == other.dirpyrDenoise.perform;
|
||||
dirpyrDenoise.luma = dirpyrDenoise.luma && p.dirpyrDenoise.luma == other.dirpyrDenoise.luma;
|
||||
dirpyrDenoise.lcurve = dirpyrDenoise.lcurve && p.dirpyrDenoise.lcurve == other.dirpyrDenoise.lcurve;
|
||||
dirpyrDenoise.Ldetail = dirpyrDenoise.Ldetail && p.dirpyrDenoise.Ldetail == other.dirpyrDenoise.Ldetail;
|
||||
dirpyrDenoise.chroma = dirpyrDenoise.chroma && p.dirpyrDenoise.chroma == other.dirpyrDenoise.chroma;
|
||||
dirpyrDenoise.redchro = dirpyrDenoise.redchro && p.dirpyrDenoise.redchro == other.dirpyrDenoise.redchro;
|
||||
@@ -519,6 +522,7 @@ void ParamsEdited::initFrom (const std::vector<rtengine::procparams::ProcParams>
|
||||
dirpyrDenoise.gamma = dirpyrDenoise.gamma && p.dirpyrDenoise.gamma == other.dirpyrDenoise.gamma;
|
||||
dirpyrDenoise.passes = dirpyrDenoise.passes && p.dirpyrDenoise.passes == other.dirpyrDenoise.passes;
|
||||
dirpyrDenoise.dmethod = dirpyrDenoise.dmethod && p.dirpyrDenoise.dmethod == other.dirpyrDenoise.dmethod;
|
||||
dirpyrDenoise.smethod = dirpyrDenoise.smethod && p.dirpyrDenoise.smethod == other.dirpyrDenoise.smethod;
|
||||
dirpyrDenoise.medmethod = dirpyrDenoise.medmethod && p.dirpyrDenoise.medmethod == other.dirpyrDenoise.medmethod;
|
||||
dirpyrDenoise.methodmed = dirpyrDenoise.methodmed && p.dirpyrDenoise.methodmed == other.dirpyrDenoise.methodmed;
|
||||
dirpyrDenoise.rgbmethod = dirpyrDenoise.rgbmethod && p.dirpyrDenoise.rgbmethod == other.dirpyrDenoise.rgbmethod;
|
||||
@@ -844,6 +848,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
if (dirpyrDenoise.enhance) toEdit.dirpyrDenoise.enhance = mods.dirpyrDenoise.enhance;
|
||||
if (dirpyrDenoise.median) toEdit.dirpyrDenoise.median = mods.dirpyrDenoise.median;
|
||||
if (dirpyrDenoise.luma) toEdit.dirpyrDenoise.luma = dontforceSet && options.baBehav[ADDSET_DIRPYRDN_LUMA] ? toEdit.dirpyrDenoise.luma + mods.dirpyrDenoise.luma : mods.dirpyrDenoise.luma;
|
||||
if (dirpyrDenoise.lcurve) toEdit.dirpyrDenoise.lcurve = mods.dirpyrDenoise.lcurve;
|
||||
if (dirpyrDenoise.Ldetail) toEdit.dirpyrDenoise.Ldetail = dontforceSet && options.baBehav[ADDSET_DIRPYRDN_LUMDET] ? toEdit.dirpyrDenoise.Ldetail + mods.dirpyrDenoise.Ldetail : mods.dirpyrDenoise.Ldetail;
|
||||
if (dirpyrDenoise.chroma) toEdit.dirpyrDenoise.chroma = dontforceSet && options.baBehav[ADDSET_DIRPYRDN_CHROMA] ? toEdit.dirpyrDenoise.chroma + mods.dirpyrDenoise.chroma : mods.dirpyrDenoise.chroma;
|
||||
if (dirpyrDenoise.redchro) toEdit.dirpyrDenoise.redchro = dontforceSet && options.baBehav[ADDSET_DIRPYRDN_CHROMARED] ? toEdit.dirpyrDenoise.redchro + mods.dirpyrDenoise.redchro : mods.dirpyrDenoise.redchro;
|
||||
@@ -852,6 +857,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
|
||||
if (dirpyrDenoise.passes) toEdit.dirpyrDenoise.passes = dontforceSet && options.baBehav[ADDSET_DIRPYRDN_PASSES] ? toEdit.dirpyrDenoise.passes + mods.dirpyrDenoise.passes : mods.dirpyrDenoise.passes;
|
||||
// if (dirpyrDenoise.perform) toEdit.dirpyrDenoise.perform = mods.dirpyrDenoise.perform;
|
||||
if (dirpyrDenoise.dmethod) toEdit.dirpyrDenoise.dmethod = mods.dirpyrDenoise.dmethod;
|
||||
if (dirpyrDenoise.smethod) toEdit.dirpyrDenoise.smethod = mods.dirpyrDenoise.smethod;
|
||||
if (dirpyrDenoise.medmethod) toEdit.dirpyrDenoise.medmethod = mods.dirpyrDenoise.medmethod;
|
||||
if (dirpyrDenoise.methodmed) toEdit.dirpyrDenoise.methodmed = mods.dirpyrDenoise.methodmed;
|
||||
if (dirpyrDenoise.rgbmethod) toEdit.dirpyrDenoise.rgbmethod = mods.dirpyrDenoise.rgbmethod;
|
||||
|
@@ -272,8 +272,11 @@ public:
|
||||
bool redchro;
|
||||
bool bluechro;
|
||||
bool gamma;
|
||||
bool lcurve;
|
||||
|
||||
// bool perform;
|
||||
bool dmethod;
|
||||
bool smethod;
|
||||
bool medmethod;
|
||||
bool methodmed;
|
||||
bool rgbmethod;
|
||||
|
Reference in New Issue
Block a user