Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkSymmetricForcesDemonsRegistration.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKSYMMETRICFORCESDEMONSREGISTRATION_H
18 #define MITKSYMMETRICFORCESDEMONSREGISTRATION_H
19 
21 #include "itkSymmetricForcesDemonsRegistrationFilter.h"
22 
23 #include "mitkImageAccessByItk.h"
24 #include "mitkRegistrationBase.h"
25 
26 namespace mitk
27 {
37  {
38  public:
40 
44  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
45 
46 
49  void SetNumberOfIterations(int iterations);
50 
54  void SetStandardDeviation(float deviation);
55 
59  void SetSaveDeformationField(bool saveField);
60 
64  void SetDeformationFieldFileName(const char *fieldName);
65 
69  void SetSaveResult(bool saveResult);
70 
74  void SetResultFileName(const char *resultName);
75 
79  itk::Image<class itk::Vector<float, 3>, 3>::Pointer GetDeformationField();
80 
84  virtual void GenerateData() override
85  {
86  if (this->GetInput())
87  {
88  AccessByItk(this->GetInput(), GenerateData2);
89  }
90  }
91 
92  protected:
97 
102 
107  template <typename TPixel, unsigned int VImageDimension>
108  void GenerateData2(const itk::Image<TPixel, VImageDimension> *itkImage1);
109 
112  const char *m_FieldName;
113  const char *m_ResultName;
116  itk::Image<class itk::Vector<float, 3>, 3>::Pointer m_DeformationField;
117  };
118 }
119 
120 #endif // MITKSYMMETRICFORCESDEMONSREGISTRATION_H
This class performes a symmetric forces demons registration between two images with the same modality...
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
virtual void GenerateData() override
Starts the symmetric forces demons registration.
#define AccessByItk(mitkImage, itkImageTypeFunction)
Access a MITK image by an ITK image.
itk::Image< class itk::Vector< float, 3 >, 3 >::Pointer m_DeformationField
This class handles the images for the registration as well as taking care of the progress bar during ...
#define MITKDEFORMABLEREGISTRATION_EXPORT