OTB  9.0.0
Orfeo Toolbox
otbInverseLogPolarTransform.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 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;
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
otb::InverseLogPolarTransform::ScalarType
TScalarType ScalarType
Definition: otbInverseLogPolarTransform.h:61
otb::InverseLogPolarTransform::SetFixedParameters
void SetFixedParameters(const ParametersType &param) override
Definition: otbInverseLogPolarTransform.h:101
otb::InverseLogPolarTransform::m_Center
InputPointType m_Center
Definition: otbInverseLogPolarTransform.h:151
otb::InverseLogPolarTransform::ScaleType
itk::FixedArray< TScalarType, 2 > ScaleType
Definition: otbInverseLogPolarTransform.h:74
otb::InverseLogPolarTransform::Self
InverseLogPolarTransform Self
Definition: otbInverseLogPolarTransform.h:52
otb::InverseLogPolarTransform::Superclass
Transform< TScalarType, 2, 2 > Superclass
Definition: otbInverseLogPolarTransform.h:53
otbTransform.h
otb::Transform::OutputPointType
itk::Point< TScalarType, NOutputDimensions > OutputPointType
Definition: otbTransform.h:95
otb::InverseLogPolarTransform::InputVectorType
Superclass::InputVectorType InputVectorType
Definition: otbInverseLogPolarTransform.h:69
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::InverseLogPolarTransform::OutputPointType
Superclass::OutputPointType OutputPointType
Definition: otbInverseLogPolarTransform.h:68
otb::Transform::InputPointType
itk::Point< TScalarType, NInputDimensions > InputPointType
Definition: otbTransform.h:94
otb::InverseLogPolarTransform::OutputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: otbInverseLogPolarTransform.h:72
otb::InverseLogPolarTransform::OutputVectorType
Superclass::OutputVectorType OutputVectorType
Definition: otbInverseLogPolarTransform.h:70
otb::Transform::OutputVectorType
itk::Vector< TScalarType, NOutputDimensions > OutputVectorType
Definition: otbTransform.h:83
otb::InverseLogPolarTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbInverseLogPolarTransform.h:54
otbInverseLogPolarTransform.hxx
otb::InverseLogPolarTransform::InputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Definition: otbInverseLogPolarTransform.h:71
otb::Transform
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:39
otb::InverseLogPolarTransform::GetFixedParameters
const ParametersType & GetFixedParameters(void) const override
Definition: otbInverseLogPolarTransform.h:110
otb::InverseLogPolarTransform
This transform is the back transform of the LogPolarTransform.
Definition: otbInverseLogPolarTransform.h:48
otb::Transform::OutputVnlVectorType
vnl_vector_fixed< TScalarType, NOutputDimensions > OutputVnlVectorType
Definition: otbTransform.h:91
otb::InverseLogPolarTransform::m_Scale
ScaleType m_Scale
Definition: otbInverseLogPolarTransform.h:152
otb::InverseLogPolarTransform::InputPointType
Superclass::InputPointType InputPointType
Definition: otbInverseLogPolarTransform.h:67
otb::InverseLogPolarTransform::ParametersType
Superclass::ParametersType ParametersType
Definition: otbInverseLogPolarTransform.h:73
otb::Transform::ParametersType
Superclass::ParametersType ParametersType
Definition: otbTransform.h:74
otb::InverseLogPolarTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbInverseLogPolarTransform.h:55