iRoCS Toolbox  1.1.0
AttachIRoCSParametersDialog.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2015 Thorsten Falk
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23 #ifndef ATTACHIROCSPARAMETERSDIALOG_HH
24 #define ATTACHIROCSPARAMETERSDIALOG_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
30 #include <QtGui/QDialog>
31 
38 
39 class AttachIRoCSParametersDialog : public QDialog
40 {
41 
42  Q_OBJECT
43 
44  public:
45 
47  LabellingMainWidget* mainWidget,
48  QWidget* parent = NULL, Qt::WindowFlags f = NULL);
50 
53 
55  void setQcChannel(AnnotationChannelSpecs *channel);
56 
57  std::string iRoCSChannelName() const;
58  void setIRoCSChannelName(std::string const &name);
59 
60  double dataWeight() const;
61  void setDataWeight(double kappa);
62 
63  double axisStiffnessWeight() const;
64  void setAxisStiffnessWeight(double lambda);
65 
66  double thicknessConstancyWeight() const;
67  void setThicknessConstancyWeight(double mu);
68 
69  double searchRadiusUm() const;
70  void setSearchRadiusUm(double searchRadiusUm);
71 
72  int nIterations() const;
73  void setNIterations(int nIter);
74 
75  double optimizationTimeStep() const;
76  void setOptimizationTimeStep(double tau);
77 
78  std::string check();
79 
80 public slots:
81 
82  void checkAndAccept();
83 
84 private:
85 
86  LabellingMainWidget *p_mainWidget;
87 
88  ChannelSelectionControlElement *p_markerChannelSelector;
89  ChannelSelectionControlElement *p_qcChannelSelector;
90  StringControlElement *p_iRoCSChannelNameControlElement;
91 
92  DoubleControlElement *p_kappaControl;
93  DoubleControlElement *p_lambdaControl;
94  DoubleControlElement *p_muControl;
95  IntControlElement *p_nIterControl;
96  DoubleControlElement *p_tauControl;
97  DoubleControlElement *p_searchRadiusUmControl;
98 
99 };
100 
101 #endif
void setThicknessConstancyWeight(double mu)
AttachIRoCSParametersDialog(LabellingMainWidget *mainWidget, QWidget *parent=NULL, Qt::WindowFlags f=NULL)
double searchRadiusUm() const
void setOptimizationTimeStep(double tau)
void setNIterations(int nIter)
double thicknessConstancyWeight() const
void setSearchRadiusUm(double searchRadiusUm)
void setIRoCSChannelName(std::string const &name)
AnnotationChannelSpecs * qcChannel() const
void setMarkerChannel(AnnotationChannelSpecs *channel)
double optimizationTimeStep() const
AnnotationChannelSpecs * markerChannel() const
std::string iRoCSChannelName() const
double axisStiffnessWeight() const
void setAxisStiffnessWeight(double lambda)
void setDataWeight(double kappa)
void setQcChannel(AnnotationChannelSpecs *channel)