NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
RegistrationExecution.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef RegistrationExecution_h
16 #define RegistrationExecution_h
17 
18 #include <QThread>
19 
20 #include "QmitkNiftyRegView.h"
21 #include <niftkF3DControlGridToVTKPolyData.h>
22 
23 
24 class RegistrationExecution : public QThread
25 {
26  // this is needed for all Qt objects that should have a Qt meta-object
27  // (everything that derives from QObject and wants to have signal/slots)
28  Q_OBJECT
29 
30 public:
31 
34 
36  void run();
37 
38 
39 protected slots:
40 
42  void ExecuteRegistration( void );
43 
44 
45 protected:
46 
49 
51  void CreateControlPointVisualisation( nifti_image *controlPointGrid );
52 
54  void CreateControlPointSphereVisualisation( nifti_image *controlPointGrid );
55 
57  void CreateVectorFieldVisualisation( nifti_image *controlPointGrid,
58  int controlGridSkipFactor );
59 
61  void CreateDeformationVisualisationSurface( niftk::PlaneType plane,
62  nifti_image *controlPointGrid,
63  int xSkip,
64  int ySkip,
65  int zSkip );
66 
67  };
68 
69 
70 #endif // RegistrationExecution_h
71 
void run()
Starts the event loop by calling exec()
Definition: RegistrationExecution.cxx:53
void CreateControlPointSphereVisualisation(nifti_image *controlPointGrid)
Create a VTK polydata object to visualise the control points using spheres.
Definition: RegistrationExecution.cxx:361
void CreateDeformationVisualisationSurface(niftk::PlaneType plane, nifti_image *controlPointGrid, int xSkip, int ySkip, int zSkip)
Create a VTK polydata object to visualise the deformation.
Definition: RegistrationExecution.cxx:467
GUI interface to enable the user to run the NiftyReg registration algorithm. .... ...
Definition: QmitkNiftyRegView.h:54
RegistrationExecution(void *param)
Constructor.
Definition: RegistrationExecution.cxx:41
Definition: RegistrationExecution.h:24
void CreateControlPointVisualisation(nifti_image *controlPointGrid)
Create a VTK polydata object to visualise the control points.
Definition: RegistrationExecution.cxx:305
QmitkNiftyRegView * userData
A pointer to the registration plugin.
Definition: RegistrationExecution.h:48
void ExecuteRegistration(void)
Run the actual registration.
Definition: RegistrationExecution.cxx:66
GLfloat param
Definition: glew.h:1514
void CreateVectorFieldVisualisation(nifti_image *controlPointGrid, int controlGridSkipFactor)
Create a VTK polydata object to visualise the deformation vector field.
Definition: RegistrationExecution.cxx:421