OTB  10.0.0
Orfeo Toolbox
otbInverseLogPolarTransform.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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 otbInverseLogPolarTransform_h
22 #define otbInverseLogPolarTransform_h
23 
24 #include "otbTransform.h"
25 
26 namespace otb
27 {
47 template <class TScalarType>
48 class ITK_EXPORT InverseLogPolarTransform : public Transform<TScalarType, 2, 2>
49 {
50 public:
54  typedef itk::SmartPointer<Self> Pointer;
55  typedef itk::SmartPointer<const Self> ConstPointer;
56 
58  itkNewMacro(Self);
59 
62 
64  typedef TScalarType ScalarType;
65 
69  typedef typename Superclass::InputVectorType InputVectorType;
71  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
73  typedef typename Superclass::ParametersType ParametersType;
74  typedef itk::FixedArray<TScalarType, 2> ScaleType;
75 
77  itkSetMacro(Center, InputPointType);
78  itkGetConstReferenceMacro(Center, InputPointType);
80 
82  itkSetMacro(Scale, ScaleType);
83  itkGetConstReferenceMacro(Scale, ScaleType);
84 
89  void SetParameters(const ParametersType& parameters) override;
90 
95  ParametersType& GetParameters(void) const override;
96 
101  void SetFixedParameters(const ParametersType& param) override
102  {
103  this->m_FixedParameters = param;
104  }
105 
110  const ParametersType& GetFixedParameters(void) const override
111  {
112  return this->m_FixedParameters;
113  }
114 
120  using Superclass::TransformVector;
121  OutputPointType TransformPoint(const InputPointType& point) const override;
122 
128  OutputVectorType TransformVector(const InputVectorType& vector) const override;
129 
135  OutputVnlVectorType TransformVector(const InputVnlVectorType& vector) const override;
136 
137 protected:
140 
142  ~InverseLogPolarTransform() override;
143 
145  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
146 
147 private:
148  InverseLogPolarTransform(const Self&) = delete;
149  void operator=(const Self&) = delete;
150 
153 };
154 } // end namespace otb
155 #ifndef OTB_MANUAL_INSTANTIATION
157 #endif
158 
159 #endif
This transform is the back transform of the LogPolarTransform.
Superclass::InputVectorType InputVectorType
Superclass::OutputPointType OutputPointType
itk::FixedArray< TScalarType, 2 > ScaleType
Transform< TScalarType, 2, 2 > Superclass
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::ParametersType ParametersType
void operator=(const Self &)=delete
InverseLogPolarTransform(const Self &)=delete
itk::SmartPointer< const Self > ConstPointer
Superclass::OutputVectorType OutputVectorType
void SetFixedParameters(const ParametersType &param) override
const ParametersType & GetFixedParameters(void) const override
Superclass::InputPointType InputPointType
Superclass::InputVnlVectorType InputVnlVectorType
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:42
itk::Point< TScalarType, NInputDimensions > InputPointType
Definition: otbTransform.h:94
itk::Point< TScalarType, NOutputDimensions > OutputPointType
Definition: otbTransform.h:95
itk::Vector< TScalarType, NOutputDimensions > OutputVectorType
Definition: otbTransform.h:83
vnl_vector_fixed< TScalarType, NOutputDimensions > OutputVnlVectorType
Definition: otbTransform.h:91
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.