ITK  4.9.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 
24 
25 namespace itk
26 {
27 
45 template<typename TFixedImage, typename TMovingImage, typename TOutputTransform =
46  BSplineSmoothingOnUpdateDisplacementFieldTransform<double, TFixedImage::ImageDimension>,
47  typename TVirtualImage = TFixedImage,
48  typename TPointSet = PointSet<unsigned int, TFixedImage::ImageDimension> >
50 : public SyNImageRegistrationMethod<TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet>
51 {
52 public:
55  typedef SyNImageRegistrationMethod<TFixedImage, TMovingImage, TOutputTransform,
56  TVirtualImage, TPointSet> Superclass;
59 
61  itkNewMacro( Self );
62 
64  itkStaticConstMacro( ImageDimension, unsigned int, TFixedImage::ImageDimension );
65 
68 
70  typedef TFixedImage FixedImageType;
71  typedef typename FixedImageType::Pointer FixedImagePointer;
73  typedef TMovingImage MovingImageType;
74  typedef typename MovingImageType::Pointer MovingImagePointer;
76 
79 
82  typedef typename ImageMetricType::Pointer ImageMetricPointer;
83  typedef typename ImageMetricType::MeasureType MeasureType;
84 
86  typedef typename ImageMaskSpatialObjectType::ImageType MaskImageType;
88  typedef typename ImageMaskSpatialObjectType::ImageType FixedMaskImageType;
91  typedef typename ImageMaskSpatialObjectType::ImageType MovingMaskImageType;
93 
97 
100  typedef typename MetricType::Pointer MetricPointer;
102 
104 
106  typedef TOutputTransform OutputTransformType;
107  typedef typename OutputTransformType::Pointer OutputTransformPointer;
108  typedef typename OutputTransformType::ScalarType RealType;
109  typedef typename OutputTransformType::DerivativeType DerivativeType;
110  typedef typename DerivativeType::ValueType DerivativeValueType;
111  typedef typename OutputTransformType::DisplacementFieldType DisplacementFieldType;
112  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
113  typedef typename DisplacementFieldType::PixelType DisplacementVectorType;
114 
119 
123  typedef typename CompositeTransformType::TransformType TransformBaseType;
124 
126  typedef typename DecoratedOutputTransformType::Pointer DecoratedOutputTransformPointer;
127 
128 protected:
131 
133  virtual void StartOptimization() ITK_OVERRIDE;
134 
135  virtual void InitializeRegistrationAtEachLevel( const SizeValueType ) ITK_OVERRIDE;
136 
138  const TransformBaseType *, const MovingImagesContainerType, const PointSetsContainerType,
139  const TransformBaseType *, const FixedImageMasksContainerType, const MovingImageMasksContainerType,
140  MeasureType & ) ITK_OVERRIDE;
142  const ArrayType &, const WeightedMaskImageType *, const BSplinePointSetType * );
143 
144 private:
145  BSplineSyNImageRegistrationMethod( const Self & ) ITK_DELETE_FUNCTION;
146  void operator=( const Self & ) ITK_DELETE_FUNCTION;
147 };
148 } // end namespace itk
149 
150 #ifndef ITK_MANUAL_INSTANTIATION
151 #include "itkBSplineSyNImageRegistrationMethod.hxx"
152 #endif
153 
154 #endif
Superclass::DecoratedOutputTransformType DecoratedOutputTransformType
Superclass::MovingImageMasksContainerType MovingImageMasksContainerType
Superclass::VirtualImageBaseConstPointer VirtualImageBaseConstPointer
Superclass::PointSetMetricType PointSetMetricType
Light weight base class for most itk classes.
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::MovingImagesContainerType MovingImagesContainerType
Superclass::FixedImageMasksContainerType FixedImageMasksContainerType
virtual void StartOptimization() override
DisplacementFieldTransformType::Pointer DisplacementFieldTransformPointer
Superclass::DisplacementFieldTransformType DisplacementFieldTransformType
Superclass::NumberOfIterationsArrayType NumberOfIterationsArrayType
Superclass::VirtualImageType VirtualImageType
Superclass::InitialTransformType InitialTransformType
Superclass::PointSetsContainerType PointSetsContainerType
Superclass::FixedImageMaskType FixedImageMaskType
DisplacementFieldTransform< RealType, ImageDimension > DisplacementFieldTransformType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
ImageMaskSpatialObjectType::ImageType MaskImageType
Superclass::VirtualImageBaseConstPointer VirtualImageBaseConstPointer
ImageMaskSpatialObject< ImageDimension > ImageMaskSpatialObjectType
Superclass::ImageMaskSpatialObjectType ImageMaskSpatialObjectType
Interface method for the performing greedy SyN image registration.
DecoratedOutputTransformType::Pointer DecoratedOutputTransformPointer
ImageMaskSpatialObjectType::ImageType MovingMaskImageType
Superclass::VirtualImageBaseType VirtualImageBaseType
Superclass::CompositeTransformType CompositeTransformType
CompositeTransformType::TransformType TransformBaseType
Superclass::PointSetsContainerType PointSetsContainerType
Superclass::MovingImageMasksContainerType MovingImageMasksContainerType
Superclass::FixedImagesContainerType FixedImagesContainerType
virtual DisplacementFieldPointer ComputeUpdateField(const FixedImagesContainerType, const PointSetsContainerType, const TransformBaseType *, const MovingImagesContainerType, const PointSetsContainerType, const TransformBaseType *, const FixedImageMasksContainerType, const MovingImageMasksContainerType, MeasureType &) override
Superclass::FixedImagesContainerType FixedImagesContainerType
Superclass::MovingImagesContainerType MovingImagesContainerType
Superclass::DisplacementFieldTransformPointer DisplacementFieldTransformPointer
virtual DisplacementFieldPointer BSplineSmoothDisplacementField(const DisplacementFieldType *, const ArrayType &, const WeightedMaskImageType *, const BSplinePointSetType *)
ImageMaskSpatialObjectType::ImageType FixedMaskImageType
virtual void InitializeRegistrationAtEachLevel(const SizeValueType) override
Superclass::DecoratedOutputTransformType DecoratedOutputTransformType
Superclass::FixedImageMasksContainerType FixedImageMasksContainerType
SyNImageRegistrationMethod< TFixedImage, TMovingImage, TOutputTransform, TVirtualImage, TPointSet > Superclass
Interface method for the performing greedy B-spline SyN image registration.
Class which takes a dense displacement field image and/or a set of points with associated displacemen...
BSplineFilterType::InputPointSetType BSplinePointSetType
OutputTransformType::DisplacementFieldType DisplacementFieldType
Templated n-dimensional image class.
Definition: itkImage.h:75
DisplacementFieldToBSplineImageFilter< DisplacementFieldType > BSplineFilterType