OTB  9.0.0
Orfeo Toolbox
otbNCCRegistrationFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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 
24 #include "itkPDEDeformableRegistrationFilter.h"
26 
27 namespace otb
28 {
29 
71 template <class TFixedImage, class TMovingImage, class TDisplacementField>
72 class ITK_EXPORT NCCRegistrationFilter : public itk::PDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField>
73 {
74 public:
77  typedef itk::PDEDeformableRegistrationFilter<TFixedImage, TMovingImage, TDisplacementField> Superclass;
78  typedef itk::SmartPointer<Self> Pointer;
79  typedef itk::SmartPointer<const Self> ConstPointer;
80 
82  itkNewMacro(Self);
83 
85  itkTypeMacro(NCCRegistrationFilter, itk::PDEDeformableRegistrationFilter);
86 
88  typedef typename Superclass::TimeStepType TimeStepType;
89 
91  typedef typename Superclass::FixedImageType FixedImageType;
92  typedef typename Superclass::FixedImagePointer FixedImagePointer;
93 
95  typedef typename Superclass::MovingImageType MovingImageType;
96  typedef typename Superclass::MovingImagePointer MovingImagePointer;
97 
99  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
100  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
101 
103  typedef typename Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType;
104 
107 
109 
116  virtual double GetMetric() const;
117 
122  virtual void SetNCCRadius(RadiusType radius);
123 
128  virtual RadiusType GetNCCRadius() const;
129 
130 protected:
133  {
134  }
135  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
136 
138  void InitializeIteration() override;
139 
141  using Superclass::ApplyUpdate;
142  virtual void ApplyUpdate(TimeStepType dt);
143 
145  void GenerateInputRequestedRegion() override;
146 
147 private:
148  NCCRegistrationFilter(const Self&) = delete;
149  void operator=(const Self&) = delete;
150 };
151 
152 } // end namespace otb
153 
154 #ifndef OTB_MANUAL_INSTANTIATION
156 #endif
157 
158 #endif
otb::NCCRegistrationFilter::RadiusType
NCCRegistrationFunctionType::RadiusType RadiusType
Definition: otbNCCRegistrationFilter.h:108
otb::NCCRegistrationFilter::FixedImagePointer
Superclass::FixedImagePointer FixedImagePointer
Definition: otbNCCRegistrationFilter.h:92
otb::NCCRegistrationFilter::MovingImageType
Superclass::MovingImageType MovingImageType
Definition: otbNCCRegistrationFilter.h:95
otb::NCCRegistrationFilter::FixedImageType
Superclass::FixedImageType FixedImageType
Definition: otbNCCRegistrationFilter.h:91
otb::NCCRegistrationFilter::FiniteDifferenceFunctionType
Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType
Definition: otbNCCRegistrationFilter.h:103
otb::NCCRegistrationFilter::~NCCRegistrationFilter
~NCCRegistrationFilter() override
Definition: otbNCCRegistrationFilter.h:132
otb::NCCRegistrationFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbNCCRegistrationFilter.h:79
otb::NCCRegistrationFilter::Superclass
itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass
Definition: otbNCCRegistrationFilter.h:77
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otbNCCRegistrationFilter.hxx
otb::NCCRegistrationFilter::MovingImagePointer
Superclass::MovingImagePointer MovingImagePointer
Definition: otbNCCRegistrationFilter.h:96
otb::NCCRegistrationFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbNCCRegistrationFilter.h:78
otb::NCCRegistrationFilter::DisplacementFieldPointer
Superclass::DisplacementFieldPointer DisplacementFieldPointer
Definition: otbNCCRegistrationFilter.h:100
otb::NCCRegistrationFunction::RadiusType
Superclass::RadiusType RadiusType
Definition: otbNCCRegistrationFunction.h:85
otb::NCCRegistrationFilter::NCCRegistrationFunctionType
NCCRegistrationFunction< FixedImageType, MovingImageType, DisplacementFieldType > NCCRegistrationFunctionType
Definition: otbNCCRegistrationFilter.h:106
otb::NCCRegistrationFilter::DisplacementFieldType
Superclass::DisplacementFieldType DisplacementFieldType
Definition: otbNCCRegistrationFilter.h:99
otb::NCCRegistrationFilter::Self
NCCRegistrationFilter Self
Definition: otbNCCRegistrationFilter.h:76
otb::NCCRegistrationFilter::TimeStepType
Superclass::TimeStepType TimeStepType
Definition: otbNCCRegistrationFilter.h:85
otb::NCCRegistrationFunction
Definition: otbNCCRegistrationFunction.h:49
otbNCCRegistrationFunction.h
otb::NCCRegistrationFilter
Deformably register two images using the PDEs and NCC.
Definition: otbNCCRegistrationFilter.h:72