44#include <wx/cmdline.h>
48 wxXmlResource::Get()->LoadDialog(
this,
parent,
"hdrmerge_options_dialog");
87 if(
parser.Found(
"m",¶m))
89 if(param.CmpNoCase(
"avg_slow")==0)
93 if(param.CmpNoCase(
"khan")==0)
107 if(
parser.Found(
"s",¶m))
114 param.ToDouble(&
sigma);
123 if(
parser.Found(
"a",¶m))
129 wxCommandEvent
dummy;
135 int selection=
m_mode->GetSelection();
143 m_cmd.Append(
"-m avg");
148 m_cmd.Append(
"-m avg_slow");
151 m_cmd.Append(
"-m khan");
159 errorstring.Append(wxString::Format(
_(
"Input \"%s\" for %s is not a valid number\n"),
168 m_cmd.Append(wxString::Format(
" -s %f",
i));
176 errorstring.Append(wxString::Format(
_(
"Input \"%s\" for %s is not a valid number\n"),
182 m_cmd.Append(
" -a ");
199 int selection=
m_mode->GetSelection();
Definition of dialog for hdrmerge options.
void OnOk(wxCommandEvent &e)
check inputs
HDRMergeOptionsDialog(wxWindow *parent)
Constructor, read from xrc ressource.
wxTextCtrl * m_khan_sigma
wxCheckBox * m_option_khan_am
wxCheckBox * m_option_khan_ag
wxCheckBox * m_option_khan_af
void SetCommandLineArgument(wxString cmd)
sets the currents state of the hdrmerge options
wxPanel * m_panel_avgslow
bool BuildCommandLineArgument()
void OnModeChanged(wxCommandEvent &e)
event handler when user selected different mode, refresh advanced option display
#define HUGIN_HDRMERGE_ARGS
int HuginMessageBox(const wxString &message, const wxString &caption, int style, wxWindow *parent)
include file for the hugin project
include file for the hugin project
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.