Hugin trunk 0.1
Loading...
Searching...
No Matches
CPDetectorDialog.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
11 /* This is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This software is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this software. If not, see
23 * <http://www.gnu.org/licenses/>.
24 *
25 */
26
27#ifndef _CPDETECTORDIALOG_H
28#define _CPDETECTORDIALOG_H
29
30#include "panoinc.h"
31#include "panoinc_WX.h"
33
34#include <wx/choicebk.h>
35
37class CPDetectorDialog : public wxDialog
38{
39public:
41 CPDetectorDialog(wxWindow* parent);
43 virtual ~CPDetectorDialog();
52protected:
54 void OnOk(wxCommandEvent & e);
56 void OnSelectPath(wxCommandEvent &e);
58 void OnSelectPathDescriptor(wxCommandEvent &e);
60 void OnSelectPathMatcher(wxCommandEvent &e);
62 void OnSelectPathStack(wxCommandEvent &e);
64 void OnTypeChange(wxCommandEvent &e);
68 bool ShowFileDialog(wxString & prog);
69private:
70 wxTextCtrl *m_edit_desc;
71 wxTextCtrl *m_edit_prog;
72 wxTextCtrl *m_edit_args;
79 wxTextCtrl *m_edit_prog_stack;
80 wxTextCtrl *m_edit_args_stack;
85
86 void ChangeType();
87};
88
89#endif
declaration of CPDetectorSetting and CPDetectorConfig classes, which are for storing and changing set...
class for storing settings of different control point generators
dialog for input settings of one autopano generator
wxTextCtrl * m_edit_args_matcher
wxTextCtrl * m_edit_prog_descriptor
bool ShowFileDialog(wxString &prog)
shows file dialog
void OnSelectPathMatcher(wxCommandEvent &e)
select program for feature matcher with file open dialog
wxTextCtrl * m_edit_desc
void OnTypeChange(wxCommandEvent &e)
update dialog, when other cp detector type is changed
wxTextCtrl * m_edit_args_cleanup
virtual ~CPDetectorDialog()
destructor, saves position and size
void OnSelectPathDescriptor(wxCommandEvent &e)
select program for feature descriptor with file open dialog
wxStaticText * m_label_args_cleanup
wxChoice * m_cpdetector_type
void OnStepChanging(wxChoicebookEvent &e)
block selection of two step detector for autopano setting
void UpdateSettings(CPDetectorConfig *cpdet_config, int index)
return inputed settings
wxTextCtrl * m_edit_args
void OnSelectPath(wxCommandEvent &e)
select program with file open dialog
wxChoicebook * m_choice_step
wxTextCtrl * m_edit_args_stack
wxTextCtrl * m_edit_prog
void UpdateFields(CPDetectorConfig *cpdet_config, int index)
updates edit fields with values from settings
void OnOk(wxCommandEvent &e)
check inputs
wxCheckBox * m_check_option
wxTextCtrl * m_edit_prog_stack
wxTextCtrl * m_edit_prog_matcher
wxTextCtrl * m_edit_args_descriptor
void OnSelectPathStack(wxCommandEvent &e)
select program for stack with file open dialog
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.
Definition threshold.h:41