forked from taigw/mitkSegExample1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSegMainWindow.h
49 lines (39 loc) · 1.01 KB
/
SegMainWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef __SegMainWindow_H__
#define __SegMainWindow_H__
#include <QMainWindow>
#include <qwidget.h>
#include <qlabel.h>
#include <QmitkStdMultiWidget.h>
#include <mitkStandaloneDataStorage.h>
#include <mitkImage.h>
#include <mitkDataNode.h>
#include <itkImage.h>
namespace Ui {
class SegMainWindow;
}
class SegMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit SegMainWindow(QWidget *parent = 0);
~SegMainWindow();
public slots:
void sltOpenFile();
void sltThresholding();
protected:
template < typename TPixel, unsigned int VImageDimension >
friend void OtsuSegmentation(itk::Image<TPixel, VImageDimension>* itkImage, SegMainWindow* segWindow);
private:
void CreateActions();
void CreateMenus();
QAction * openFileAction;
QAction * thresholdAction;
QAction * exitAction;
QLabel *label;
QmitkStdMultiWidget *multiViewWgt;
mitk::StandaloneDataStorage::Pointer m_DataStorage;
mitk::Image::Pointer m_FirstImage;
mitk::Image::Pointer m_ResultImage;
mitk::DataNode::Pointer m_ResultNode;
};
#endif