Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDemonsRegistration.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 MITKDEMONSREGISTRATION_H
18 #define MITKDEMONSREGISTRATION_H
19 
21 #include "itkDemonsRegistrationFilter.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<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 
101  virtual ~DemonsRegistration();
102 
106  template <typename TPixel, unsigned int VImageDimension>
107  void GenerateData2(const itk::Image<TPixel, VImageDimension> *itkImage1);
108 
111  const char *m_FieldName;
112  const char *m_ResultName;
115  itk::Image<class itk::Vector<float, 3>, 3>::Pointer m_DeformationField;
116  };
117 }
118 
119 #endif // MITKDEMONSREGISTRATION_H
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void GenerateData() override
Starts the demons registration.
This class performes a demons registration between two images with the same modality..
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
itk::Image< class itk::Vector< float, 3 >, 3 >::Pointer m_DeformationField
#define AccessByItk(mitkImage, itkImageTypeFunction)
Access a MITK image by an ITK image.
This class handles the images for the registration as well as taking care of the progress bar during ...
#define MITKDEFORMABLEREGISTRATION_EXPORT