ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingVelocityFieldImageRegistrationMethodv4.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 __itkTimeVaryingVelocityFieldImageRegistrationMethodv4_h
19 #define __itkTimeVaryingVelocityFieldImageRegistrationMethodv4_h
20 
22 
24 
25 namespace itk
26 {
27 
83 template<typename TFixedImage, typename TMovingImage, typename TOutputTransform =
84  GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform<double, TFixedImage::ImageDimension> >
86 : public ImageRegistrationMethodv4<TFixedImage, TMovingImage, TOutputTransform>
87 {
88 public:
94 
96  itkNewMacro( Self );
97 
99  itkStaticConstMacro( ImageDimension, unsigned int, TFixedImage::ImageDimension );
100 
103 
105  typedef TFixedImage FixedImageType;
106  typedef typename FixedImageType::Pointer FixedImagePointer;
107  typedef TMovingImage MovingImageType;
108  typedef typename MovingImageType::Pointer MovingImagePointer;
109 
110  typedef typename MovingImageType::RegionType RegionType;
111 
114  typedef typename ImageMetricType::Pointer ImageMetricPointer;
115  typedef typename ImageMetricType::VirtualImageType VirtualImageType;
116  typedef typename ImageMetricType::MeasureType MeasureType;
118 
119  typedef TOutputTransform OutputTransformType;
120  typedef typename OutputTransformType::Pointer OutputTransformPointer;
121  typedef typename OutputTransformType::ScalarType RealType;
122  typedef typename OutputTransformType::DerivativeType DerivativeType;
123  typedef typename DerivativeType::ValueType DerivativeValueType;
124  typedef typename OutputTransformType::TimeVaryingVelocityFieldType TimeVaryingVelocityFieldType;
125  typedef typename TimeVaryingVelocityFieldType::Pointer TimeVaryingVelocityFieldPointer;
126  typedef typename OutputTransformType::DisplacementFieldType DisplacementFieldType;
127  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
128  typedef typename TimeVaryingVelocityFieldType::PixelType DisplacementVectorType;
129 
131 
133  typedef typename DecoratedOutputTransformType::Pointer DecoratedOutputTransformPointer;
134 
136 
138  itkSetMacro( LearningRate, RealType );
139  itkGetConstMacro( LearningRate, RealType );
141 
143  itkSetMacro( NumberOfIterationsPerLevel, NumberOfIterationsArrayType );
144  itkGetConstMacro( NumberOfIterationsPerLevel, NumberOfIterationsArrayType );
146 
148  itkSetMacro( ConvergenceThreshold, RealType );
149  itkGetConstMacro( ConvergenceThreshold, RealType );
151 
153  itkSetMacro( ConvergenceWindowSize, unsigned int );
154  itkGetConstMacro( ConvergenceWindowSize, unsigned int );
156 
157 protected:
160  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
161 
163  virtual void GenerateData();
164 
167 
169  virtual void StartOptimization();
170 
171 private:
172  TimeVaryingVelocityFieldImageRegistrationMethodv4( const Self & ); //purposely not
173  // implemented
174  void operator=( const Self & ); //purposely not
175 
177 
180 
182 };
183 } // end namespace itk
184 
185 #ifndef ITK_MANUAL_INSTANTIATION
186 #include "itkTimeVaryingVelocityFieldImageRegistrationMethodv4.hxx"
187 #endif
188 
189 #endif
void ThreadedGenerateData(const RegionType &, ThreadIdType)
Light weight base class for most itk classes.
virtual void PrintSelf(std::ostream &os, Indent indent) const
ImageToImageMetricv4< FixedImageType, MovingImageType, VirtualImageType, RealType > ImageMetricType
ImageRegistrationMethodv4< TFixedImage, TMovingImage, TOutputTransform > Superclass
ObjectToObjectMultiMetricv4< ImageDimension, ImageDimension, VirtualImageType, RealType > MultiMetricType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Interface method for the current registration framework.
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Interface method for the current registration framework using the time varying velocity field transfo...