ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkBSplineSyNImageRegistrationMethod.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 __itkBSplineSyNImageRegistrationMethod_h
19 #define __itkBSplineSyNImageRegistrationMethod_h
20 
22 
25 
26 namespace itk
27 {
28 
46 template<typename TFixedImage, typename TMovingImage, typename TOutputTransform =
47  BSplineSmoothingOnUpdateDisplacementFieldTransform<double, TFixedImage::ImageDimension> >
49 : public SyNImageRegistrationMethod<TFixedImage, TMovingImage, TOutputTransform>
50 {
51 public:
57 
59  itkNewMacro( Self );
60 
62  itkStaticConstMacro( ImageDimension, unsigned int, TFixedImage::ImageDimension );
63 
66 
68  typedef TFixedImage FixedImageType;
69  typedef typename FixedImageType::Pointer FixedImagePointer;
71  typedef TMovingImage MovingImageType;
72  typedef typename MovingImageType::Pointer MovingImagePointer;
74 
77  typedef typename ImageMetricType::Pointer ImageMetricPointer;
78  typedef typename ImageMetricType::VirtualImageType VirtualImageType;
79  typedef typename ImageMetricType::MeasureType MeasureType;
81  typedef typename ImageMetricType::FixedImageMaskType FixedImageMaskType;
82  typedef typename ImageMetricType::MovingImageMaskType MovingImageMaskType;
83 
85 
87  typedef TOutputTransform OutputTransformType;
88  typedef typename OutputTransformType::Pointer OutputTransformPointer;
89  typedef typename OutputTransformType::ScalarType RealType;
90  typedef typename OutputTransformType::DerivativeType DerivativeType;
91  typedef typename DerivativeType::ValueType DerivativeValueType;
92  typedef typename OutputTransformType::DisplacementFieldType DisplacementFieldType;
93  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
94  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
95 
100 
103 
105  typedef typename CompositeTransformType::TransformType TransformBaseType;
106 
108  typedef typename DecoratedOutputTransformType::Pointer DecoratedOutputTransformPointer;
109 
110 protected:
113 
115  virtual void StartOptimization();
116 
117  virtual void InitializeRegistrationAtEachLevel( const SizeValueType );
118 
122 
123 private:
124  BSplineSyNImageRegistrationMethod( const Self & ); //purposely not implemented
125  void operator=( const Self & ); //purposely not implemented
126 };
127 } // end namespace itk
128 
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkBSplineSyNImageRegistrationMethod.hxx"
131 #endif
132 
133 #endif
ImageMetricType::FixedImageMaskType FixedImageMaskType
Implementation of an image mask as spatial object.
Light weight base class for most itk classes.
Superclass::InitialTransformType InitialTransformType
Superclass::DecoratedOutputTransformType DecoratedOutputTransformType
virtual DisplacementFieldPointer ComputeUpdateField(const FixedImagesContainerType, const TransformBaseType *, const MovingImagesContainerType, const TransformBaseType *, const FixedImageMaskType *, MeasureType &)
Superclass::DecoratedOutputTransformType DecoratedOutputTransformType
Superclass::MovingImagesContainerType MovingImagesContainerType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
Superclass::FixedImagesContainerType FixedImagesContainerType
OutputTransformType::DisplacementFieldType DisplacementFieldType
SyNImageRegistrationMethod< TFixedImage, TMovingImage, TOutputTransform > Superclass
CompositeTransformType::TransformType TransformBaseType
Superclass::FixedImagesContainerType FixedImagesContainerType
Interface method for the performing greedy SyN image registration.
Superclass::MultiMetricType MultiMetricType
ImageMetricType::MovingImageMaskType MovingImageMaskType
virtual void InitializeRegistrationAtEachLevel(const SizeValueType)
Superclass::CompositeTransformType CompositeTransformType
ImageMaskSpatialObject< ImageDimension > ImageMaskSpatialObjectType
Superclass::ImageMetricType ImageMetricType
Superclass::NumberOfIterationsArrayType NumberOfIterationsArrayType
DisplacementFieldToBSplineImageFilter< DisplacementFieldType, DisplacementFieldType > BSplineFilterType
virtual DisplacementFieldPointer BSplineSmoothDisplacementField(const DisplacementFieldType *, const ArrayType &, const WeightedMaskImageType *)
DecoratedOutputTransformType::Pointer DecoratedOutputTransformPointer
Interface method for the performing greedy B-spline SyN image registration.
Class which takes a displacement field image and smooths it using B-splines. The inverse can also be ...
Superclass::MovingImagesContainerType MovingImagesContainerType
Templated n-dimensional image class.
Definition: itkImage.h:75