iRoCS Toolbox  1.1.0
DetectSpheresParametersDialog.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 DETECTSPHERESPARAMETERSDIALOG_HH
24 #define DETECTSPHERESPARAMETERSDIALOG_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
30 #include <QtGui/QDialog>
31 
39 
40 #include <string>
41 
42 class DetectSpheresParametersDialog : public QDialog
43 {
44 
45  Q_OBJECT
46 
47  public:
48 
50  LabellingMainWidget* mainWidget,
51  QWidget* parent = NULL, Qt::WindowFlags f = NULL);
53 
54  ChannelSpecs* dataChannel() const;
55  void setDataChannel(ChannelSpecs *channel);
56 
57  std::string annotationChannelName() const;
58  void setAnnotationChannelName(std::string const &name);
59 
60  blitz::TinyVector<double,2> radiusRangeUm() const;
61  void setRadiusRangeUm(blitz::TinyVector<double,2> const &range);
62 
63  double radiusStepUm() const;
64  void setRadiusStepUm(double radiusStepUm);
65 
66  double preSmoothingSigmaUm() const;
67  void setPreSmoothingSigmaUm(double sigmaUm);
68 
69  double postSmoothingSigmaUm() const;
70  void setPostSmoothingSigmaUm(double sigmaUm);
71 
72  double minMagnitude() const;
73  void setMinMagnitude(double minMagnitude);
74 
75  bool invertGradients() const;
76  void setInvertGradients(bool invert);
77 
78  double gamma() const;
79  void setGamma(double gamma);
80 
81  std::string check();
82 
83 public slots:
84 
85  void checkAndAccept();
86 
87 private:
88 
89  LabellingMainWidget* p_mainWidget;
90 
91  ChannelSelectionControlElement *p_dataChannelSelector;
92  StringControlElement *p_annotationChannelControlElement;
93  DoubleRangeControlElement *p_radiusRangeControl;
94  DoubleControlElement *p_radiusStepControl;
95  DoubleControlElement *p_preSmoothingSigmaUmControl;
96  DoubleControlElement *p_postSmoothingSigmaUmControl;
97  DoubleControlElement *p_minMagnitudeControl;
98  BoolControlElement *p_invertGradientsControl;
99  DoubleControlElement *p_gammaControl;
100 
101 };
102 
103 #endif
void setPreSmoothingSigmaUm(double sigmaUm)
void setRadiusRangeUm(blitz::TinyVector< double, 2 > const &range)
blitz::TinyVector< double, 2 > radiusRangeUm() const
double postSmoothingSigmaUm() const
DetectSpheresParametersDialog(LabellingMainWidget *mainWidget, QWidget *parent=NULL, Qt::WindowFlags f=NULL)
void setInvertGradients(bool invert)
void setAnnotationChannelName(std::string const &name)
double preSmoothingSigmaUm() const
void invert(blitz::Array< double, 2 > const &A, blitz::Array< double, 2 > &Ainv)
Compute the inverse of matrix A.
void setGamma(double gamma)
void setDataChannel(ChannelSpecs *channel)
void setRadiusStepUm(double radiusStepUm)
void setMinMagnitude(double minMagnitude)
void setPostSmoothingSigmaUm(double sigmaUm)
std::string annotationChannelName() const
ChannelSpecs * dataChannel() const