ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.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 itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod_h
19 #define itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod_h
20 
22 
26 
27 namespace itk
28 {
29 
86 template<typename TFixedImage, typename TMovingImage, typename TOutputTransform =
87  TimeVaryingBSplineVelocityFieldTransform<double, TFixedImage::ImageDimension>,
88  typename TVirtualImage = TFixedImage,
89  typename TPointSet = PointSet<unsigned int, TFixedImage::ImageDimension> >
91 : public ImageRegistrationMethodv4<TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet>
92 {
93 public:
96  typedef ImageRegistrationMethodv4<TFixedImage, TMovingImage, TOutputTransform,
97  TVirtualImage, TPointSet> Superclass;
100 
102  itkNewMacro( Self );
103 
105  itkStaticConstMacro( ImageDimension, unsigned int, TFixedImage::ImageDimension );
106 
108  itkTypeMacro( TimeVaryingBSplineVelocityFieldImageRegistrationMethod, SimpleImageRegistrationMethod );
109 
111  typedef TFixedImage FixedImageType;
112  typedef typename FixedImageType::Pointer FixedImagePointer;
113  typedef TMovingImage MovingImageType;
114  typedef typename MovingImageType::Pointer MovingImagePointer;
115 
126 
127  typedef TOutputTransform OutputTransformType;
128  typedef typename OutputTransformType::Pointer OutputTransformPointer;
129  typedef typename OutputTransformType::ScalarType RealType;
130  typedef typename OutputTransformType::DerivativeType DerivativeType;
131  typedef typename DerivativeType::ValueType DerivativeValueType;
132  typedef typename OutputTransformType::DisplacementFieldType DisplacementFieldType;
133  typedef typename OutputTransformType::TimeVaryingVelocityFieldControlPointLatticeType TimeVaryingVelocityFieldControlPointLatticeType;
134  typedef typename OutputTransformType::TimeVaryingVelocityFieldControlPointLatticePointer TimeVaryingVelocityFieldControlPointLatticePointer;
135  typedef typename OutputTransformType::TimeVaryingVelocityFieldControlPointLatticeType TimeVaryingVelocityFieldType;
136  typedef typename OutputTransformType::TimeVaryingVelocityFieldControlPointLatticePointer TimeVaryingVelocityFieldPointer;
137  typedef typename TimeVaryingVelocityFieldControlPointLatticeType::PixelType DisplacementVectorType;
138 
140 
143 
145 
152 
154  itkSetMacro( LearningRate, RealType );
155  itkGetConstMacro( LearningRate, RealType );
157 
159  itkSetMacro( NumberOfIterationsPerLevel, NumberOfIterationsArrayType );
160  itkGetConstMacro( NumberOfIterationsPerLevel, NumberOfIterationsArrayType );
162 
164  itkSetMacro( ConvergenceThreshold, RealType );
165  itkGetConstMacro( ConvergenceThreshold, RealType );
167 
169  itkSetMacro( ConvergenceWindowSize, unsigned int );
170  itkGetConstMacro( ConvergenceWindowSize, unsigned int );
172 
174  itkSetMacro( NumberOfTimePointSamples, SizeValueType );
175  itkGetConstMacro( NumberOfTimePointSamples, SizeValueType );
177 
178 protected:
181  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
182 
184  virtual void GenerateData() ITK_OVERRIDE;
185 
187  virtual void StartOptimization();
188 
189 private:
191  // implemented
192  void operator=( const Self & ); //purposely not
193 
195 
198 
200 
202 };
203 } // end namespace itk
204 
205 #ifndef ITK_MANUAL_INSTANTIATION
206 #include "itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx"
207 #endif
208 
209 #endif
Implementation of an image mask as spatial object.
Light weight base class for most itk classes.
Superclass::MeasureType MeasureType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
ImageRegistrationMethodv4< TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet > Superclass
ImageToImageMetricv4< FixedImageType, MovingImageType, VirtualImageType, RealType > ImageMetricType
OutputTransformType::TimeVaryingVelocityFieldControlPointLatticePointer TimeVaryingVelocityFieldControlPointLatticePointer
Interface method for the current registration framework using the time varying velocity field transfo...
Implementation of the composite pattern.
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition: itkPointSet.h:84
OutputTransformType::TimeVaryingVelocityFieldControlPointLatticeType TimeVaryingVelocityFieldControlPointLatticeType
Image filter which provides a B-spline output approximation.
OutputTransformType::TimeVaryingVelocityFieldControlPointLatticePointer TimeVaryingVelocityFieldPointer
Define a front-end to the STL &quot;vector&quot; container that conforms to the IndexedContainerInterface.
DataObjectDecorator< OutputTransformType > DecoratedOutputTransformType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Interface method for the current registration framework.
CompositeTransform< RealType, ImageDimension > CompositeTransformType
OutputTransformType::ScalarType RealType
ObjectToObjectMultiMetricv4< ImageDimension, ImageDimension, VirtualImageType, RealType > MultiMetricType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Templated n-dimensional image class.
Definition: itkImage.h:75
BSplineScatteredDataPointSetToImageFilter< PointSetType, TimeVaryingVelocityFieldType > BSplineFilterType
OutputTransformType::TimeVaryingVelocityFieldControlPointLatticeType TimeVaryingVelocityFieldType
Superclass::VirtualImageType VirtualImageType