-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigwin.h
58 lines (48 loc) · 1.38 KB
/
configwin.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
50
51
52
53
54
55
56
57
58
#ifndef CONFIGWIN_H
#define CONFIGWIN_H
#include "ui_configwin.h"
#include <iostream>
#include <QFileDialog>
#include "itkImageToVTKImageFilter.h"
#include <itkImage.h>
#include <itkSmartPointer.h>
#include "vtkSmartPointer.h"
#include "vtkImageActor.h"
#include "vtkImageMapper3D.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkResliceImageViewer.h"
#include "IO/LoadSeriesSafeAsVolume.h"
#include "Registration/Registrator.h"
namespace Ui {
class ConfigWin;
}
class ConfigWin : public QDialog
{
Q_OBJECT
public:
explicit ConfigWin(QWidget *parent = 0);
~ConfigWin();
enum class Imagetype { Fixed, Moving };
private slots:
void testOutput();
void registerImages();
void browseMovingImage();
void browseFixedImage();
void browseOutput();
void updateShowFixedImage();
void updateShowMovingImage();
private:
typedef float PixelType;
void updateShowImage(ConfigWin::Imagetype type);
void loadImage(ConfigWin::Imagetype type);
Ui::ConfigWin *ui;
vtkSmartPointer<vtkResliceImageViewer> image_view_moving;
vtkSmartPointer<vtkResliceImageViewer> image_view_fixed;
itk::SmartPointer<itk::Image<PixelType, 2>> fixedImage;
itk::SmartPointer<itk::Image<PixelType, 2>> movingImage;
itk::SmartPointer<itk::Image<PixelType, 3>> fixedVolume;
itk::SmartPointer<itk::Image<PixelType, 3>> movingVolume;
};
#endif // CONFIGWIN_H