ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkVariationalDiffeomorphicRegistrationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkVariationalDiffeomorphicRegistrationFilter_h
19 #define itkVariationalDiffeomorphicRegistrationFilter_h
20 
23 
24 
25 namespace itk {
26 
79 template< class TFixedImage, class TMovingImage, class TDisplacementField>
81  : public VariationalRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField >
82 {
83 public:
87  TFixedImage, TMovingImage, TDisplacementField > Superclass;
90 
92  itkNewMacro(Self);
93 
95  itkTypeMacro(itkVariationalDiffeomorphicRegistrationFilter, VariationalRegistrationFilter );
96 
98  itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
99 
101  typedef TFixedImage FixedImageType;
102  typedef typename FixedImageType::Pointer FixedImagePointer;
103  typedef typename FixedImageType::ConstPointer FixedImageConstPointer;
104 
106  typedef TMovingImage MovingImageType;
107  typedef typename MovingImageType::Pointer MovingImagePointer;
108  typedef typename MovingImageType::ConstPointer MovingImageConstPointer;
109 
111  typedef TDisplacementField DisplacementFieldType;
112  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
113 
116 
119 
122 
125 
127  itkSetMacro( NumberOfExponentiatorIterations, unsigned int );
128 
130  itkGetConstMacro( NumberOfExponentiatorIterations, unsigned int );
131 
133  virtual void SetInitialDisplacementField( DisplacementFieldType * ptr ) ITK_OVERRIDE;
134 
137  { return m_DisplacementField; }
138 
141  { this->SetInput( ptr ); }
142 
145  { return this->GetOutput(); }
146 
147 protected:
150 
152  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
153 
155  virtual void Initialize() ITK_OVERRIDE;
156 
158  virtual void ApplyUpdate( const TimeStepType& dt ) ITK_OVERRIDE;
159 
162  virtual void CalcDeformationFromVelocityField( const DisplacementFieldType * velocityField );
163 
167 
169  typedef typename FieldExponentiatorType::Pointer FieldExponentiatorPointer;
170 
172  virtual FieldExponentiatorPointer GetExponentiator()
173  { return m_Exponentiator; }
174 
175 private:
176  VariationalDiffeomorphicRegistrationFilter(const Self&); //purposely not implemented
177  void operator=(const Self&); //purposely not implemented
178 
182 
185 
186 };
187 
188 }// end namespace itk
189 
190 #ifndef ITK_MANUAL_INSTANTIATION
191 # include "itkVariationalDiffeomorphicRegistrationFilter.hxx"
192 #endif
193 
194 #endif
Light weight base class for most itk classes.
virtual void CalcDeformationFromVelocityField(const DisplacementFieldType *velocityField)
Flexible framework for deformable registration of two images using PDE-based variational registration...
virtual void ApplyUpdate(const TimeStepType &dt) override
Diffeomorphic deformable registration of two images using static velocity fields. ...
VariationalRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
virtual void SetInput(const InputImageType *image)
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Computes a diffeomorphic displacement field as the Lie group exponential of a vector field...
VariationalRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > RegistrationFunctionType
virtual void SetInitialDisplacementField(DisplacementFieldType *ptr) override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
VariationalRegistrationRegularizer< DisplacementFieldType > RegularizerType