Skip to content

Commit

Permalink
fix: demosaic enable/disable checkbox now works
Browse files Browse the repository at this point in the history
  • Loading branch information
butcherg committed Jul 12, 2021
1 parent 5b6196c commit 7e4cf93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/PicProcessorDemosaic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define DEMOSAICXTRANFAST 6915

//#define DCBITERATIONS 6916
//#define DCBENHANCE 6917
#define DCBENHANCE 6917
#endif


Expand Down Expand Up @@ -65,7 +65,7 @@ class DemosaicPanel: public PicProcPanel
dcbb = new wxRadioButton(this, DEMOSAICDCB, "dcb:");
dcbb->SetToolTip("");
dcb_iterations = new myIntegerCtrl(this, wxID_ANY, "iterations:", 1, 1, 5, wxDefaultPosition, wxSize(50,-1));
dcb_enhance = new wxCheckBox(this, wxID_ANY, "enhance:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
dcb_enhance = new wxCheckBox(this, DCBENHANCE, "enhance:", wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT);
igvb = new wxRadioButton(this, DEMOSAICIGV, "igv");
igvb->SetToolTip("");
lmmseb = new wxRadioButton(this, DEMOSAICLMMSE, "lmmse:");
Expand Down Expand Up @@ -208,7 +208,7 @@ colorb->Enable(true);
t.SetOwner(this);

Bind(wxEVT_CHECKBOX, &DemosaicPanel::onEnable, this, DEMOSAICENABLE);
Bind(wxEVT_CHECKBOX, &DemosaicPanel::paramChanged, this);
Bind(wxEVT_CHECKBOX, &DemosaicPanel::paramChanged, this, DCBENHANCE);
Bind(wxEVT_RADIOBUTTON, &DemosaicPanel::algorithmChanged, this);
Bind(wxEVT_BUTTON, &DemosaicPanel::OnCopy, this, DEMOSAICCOPY);
Bind(wxEVT_BUTTON, &DemosaicPanel::OnPaste, this, DEMOSAICPASTE);
Expand Down Expand Up @@ -427,6 +427,7 @@ bool PicProcessorDemosaic::processPicture(gImage *processdib)
((wxFrame*) m_display->GetParent())->SetStatusText(_("demosaic..."));
bool ret = true;
std::map<std::string,std::string> result;
dib = processdib;

std::map<std::string,std::string> params;
std::string pstr = getParams().ToStdString();
Expand Down

0 comments on commit 7e4cf93

Please sign in to comment.