-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathQtImgSegment.h
More file actions
73 lines (57 loc) · 1.65 KB
/
QtImgSegment.h
File metadata and controls
73 lines (57 loc) · 1.65 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* \file: QtImgSegment.h
* \author: Sankhesh Jhaveri
* \brief: declares QtImgSegment class. This is the main GUI class that handles all connections.
**/
#ifndef __QTIMGSEGMENT_H__
#define __QTIMGSEGMENT_H__
#include "ui_QtImgSegment.h"
#include "RenderBase.h"
#include "utils.h"
#include "itkImgFilter.h"
#include "vtkImgFilter.h"
#include "vxlImgFilter.h"
#include <vtkEventQtSlotConnect.h>
#include <vtkImageActor.h>
#include <vcl_string.h>
#include <vcl_exception.h>
class vtkEventQtSlotConnect;
class vtkObject;
class vtkCommand;
class QtImgSegment : public QMainWindow, public Ui::MainWindow_SegmentationGUI
{
Q_OBJECT
unsigned img_rows, img_cols;
public:
QtImgSegment();
~QtImgSegment();
QString workingDir;
void renderAll( int visibility = 1, bool reset_camera = false );
void setSliders( void );
void resetSliders( void );
itkImgFilter *itkFilter;
vtkImgFilter *vtkFilter;
vxlImgFilter *vxlFilter;
void UpdateITKImage( const bool reset_camera = false );
void UpdateVTKImage( const bool reset_camera = false );
void UpdateVXLImage( const bool reset_camera = false );
public slots:
void slotLoadImage( void );
void slotSetWorkingDirectory( void );
void closeEvent(QCloseEvent* Event);
void slotCloseImage( void );
void slotITKthresh( int value );
void slotITKvar( int value );
void slotVTKradius( int value );
void slotVTKstddev( int value );
void slotVTKthresh( int value );
void slotVXLNonMaxThresh( int value );
void slotVXLMagThresh( int value );
protected:
vtkEventQtSlotConnect* Connections;
RenderImage qvtk_original;
RenderImage qvtk_itk;
RenderImage qvtk_vtk;
RenderImage qvtk_vxl;
};
#endif // __QTIMGSEGMENT_H__