OTB  6.1.0
Orfeo Toolbox
otbNCCRegistrationFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbNCCRegistrationFilter_h
22 #define otbNCCRegistrationFilter_h
23 
26 
27 namespace otb
28 {
29 
71 template<class TFixedImage, class TMovingImage, class TDisplacementField>
72 class ITK_EXPORT NCCRegistrationFilter :
73  public itk::PDEDeformableRegistrationFilter<TFixedImage, TMovingImage,
74  TDisplacementField>
75 {
76 public:
80  TFixedImage, TMovingImage, TDisplacementField> Superclass;
83 
85  itkNewMacro(Self);
86 
88  itkTypeMacro(NCCRegistrationFilter,
90 
92  typedef typename Superclass::TimeStepType TimeStepType;
93 
95  typedef typename Superclass::FixedImageType FixedImageType;
96  typedef typename Superclass::FixedImagePointer FixedImagePointer;
97 
99  typedef typename Superclass::MovingImageType MovingImageType;
100  typedef typename Superclass::MovingImagePointer MovingImagePointer;
101 
103  typedef typename Superclass::DisplacementFieldType
105  typedef typename Superclass::DisplacementFieldPointer
107 
109  typedef typename Superclass::FiniteDifferenceFunctionType
111 
115 
117 
124  virtual double GetMetric() const;
125 
130  virtual void SetNCCRadius(RadiusType radius);
131 
136  virtual RadiusType GetNCCRadius() const;
137 
138 protected:
140  ~NCCRegistrationFilter() ITK_OVERRIDE {}
141  void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
142 
144  void InitializeIteration() ITK_OVERRIDE;
145 
147  using Superclass::ApplyUpdate;
148  virtual void ApplyUpdate(TimeStepType dt);
149 
151  void GenerateInputRequestedRegion() ITK_OVERRIDE;
152 
153 private:
154  NCCRegistrationFilter(const Self &); //purposely not implemented
155  void operator =(const Self&); //purposely not implemented
156 
157 };
158 
159 } // end namespace otb
160 
161 #ifndef OTB_MANUAL_INSTANTIATION
163 #endif
164 
165 #endif
itk::SmartPointer< Self > Pointer
Superclass::MovingImageType MovingImageType
NCCRegistrationFunctionType::RadiusType RadiusType
itk::SmartPointer< const Self > ConstPointer
Superclass::DisplacementFieldPointer DisplacementFieldPointer
FiniteDifferenceFunctionType::RadiusType RadiusType
Deformably register two images using the PDEs and NCC.
Superclass::MovingImagePointer MovingImagePointer
NCCRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > NCCRegistrationFunctionType
Superclass::TimeStepType TimeStepType
Superclass::FixedImagePointer FixedImagePointer
itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
TDisplacementField DisplacementFieldType
Superclass::DisplacementFieldType DisplacementFieldType
Superclass::FixedImageType FixedImageType
Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType