iRoCS Toolbox  1.1.0
AssignLayersToCellSegmentationParametersDialog.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 ASSIGNLAYERSTOCELLSEGMENTATIONPARAMETERSDIALOG_HH
24 #define ASSIGNLAYERSTOCELLSEGMENTATIONPARAMETERSDIALOG_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
30 #include <QtGui/QDialog>
31 
38 
41 
43 {
44 
45  Q_OBJECT
46 
47  public:
48 
50  LabellingMainWidget* mainWidget,
51  QWidget* parent = NULL, Qt::WindowFlags f = NULL);
53 
56 
59 
60  std::string outFileName() const;
61  void setOutFileName(std::string const &outFileName);
62 
63  std::string labelName() const;
64  void setLabelName(std::string const &labelName);
65 
66  std::string modelFileName() const;
67  void setModelFileName(std::string const &modelFileName);
68 
69  std::string featureFileName() const;
70  void setFeatureFileName(std::string const &featureFileName);
71 
72  std::string featureGroup() const;
73  void setFeatureGroup(std::string const &featureGroup);
74 
75  double volumeThresholdUm3() const;
76  void setVolumeThresholdUm3(double volumeThresholdUm3);
77 
78  int backgroundLabel() const;
79  void setBackgroundLabel(int backgroundLabel);
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_segmentationChannelSelector;
92  ChannelSelectionControlElement *p_iRoCSChannelSelector;
93  FileNameSelectionControlElement *p_outFileControlElement;
94  StringControlElement *p_labelNameControlElement;
95  FileNameSelectionControlElement *p_modelFileControlElement;
96  FileNameSelectionControlElement *p_featureFileControlElement;
97  StringControlElement *p_featureGroupControlElement;
98 
99  DoubleControlElement *p_volumeThresholdUm3Control;
100  IntControlElement *p_backgroundLabelControl;
101 
102 };
103 
104 #endif
void setLabelName(std::string const &labelName)
void setOutFileName(std::string const &outFileName)
AssignLayersToCellSegmentationParametersDialog(LabellingMainWidget *mainWidget, QWidget *parent=NULL, Qt::WindowFlags f=NULL)
void setFeatureGroup(std::string const &featureGroup)
IRoCSSCTChannelSpecs * iRoCSChannel() const
VisualizationChannelSpecs * segmentationChannel() const
void setIRoCSChannel(IRoCSSCTChannelSpecs *channel)
void setFeatureFileName(std::string const &featureFileName)
void setModelFileName(std::string const &modelFileName)
void setVolumeThresholdUm3(double volumeThresholdUm3)
void setSegmentationChannel(VisualizationChannelSpecs *channel)
void setBackgroundLabel(int backgroundLabel)