ITK  4.9.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 
115  typedef typename Superclass::OutputImageType OutputImageType;
116 
118  typedef typename Superclass::RegistrationFunctionType RegistrationFunctionType;
119 
121  typedef typename Superclass::RegularizerType RegularizerType;
122 
124  typedef typename Superclass::TimeStepType TimeStepType;
125 
127  itkSetMacro( NumberOfExponentiatorIterations, unsigned int );
128 
130  itkGetConstMacro( NumberOfExponentiatorIterations, unsigned int );
131 
133  virtual void SetInitialDisplacementField( DisplacementFieldType * ptr );
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;
153 
155  virtual void Initialize();
156 
158  virtual void ApplyUpdate( const TimeStepType& dt );
159 
162  virtual void CalcDeformationFromVelocityField( const DisplacementFieldType * velocityField );
163 
167 
170 
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.
Flexible framework for deformable registration of two images using PDE-based variational registration...
Diffeomorphic deformable registration of two images using static velocity fields. ...
itk::ExponentialDisplacementFieldImageFilter< DisplacementFieldType, DisplacementFieldType > FieldExponentiatorType
VariationalRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
Computes a diffeomorphic displacement field as the Lie group exponential of a vector field...
Control indentation during Print() invocation.
Definition: itkIndent.h:49