OTB  9.0.0
Orfeo Toolbox
otbLogPolarTransform.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 otbLogPolarTransform_h
22 #define otbLogPolarTransform_h
23 
24 #include "otbTransform.h"
25 
26 namespace otb
27 {
48 template <class TScalarType>
49 class ITK_EXPORT LogPolarTransform : public Transform<TScalarType, 2, 2>
50 {
51 public:
55  typedef itk::SmartPointer<Self> Pointer;
56  typedef itk::SmartPointer<const Self> ConstPointer;
57 
59  itkNewMacro(Self);
60 
62  itkTypeMacro(LogPolarTransform, Transform);
63 
65  typedef TScalarType ScalarType;
66 
70  typedef typename Superclass::InputVectorType InputVectorType;
72  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
74  typedef typename Superclass::ParametersType ParametersType;
75  typedef itk::FixedArray<TScalarType, 2> ScaleType;
76 
78  itkSetMacro(Center, InputPointType);
79  itkGetConstReferenceMacro(Center, InputPointType);
81 
83  itkSetMacro(Scale, ScaleType);
84  itkGetConstReferenceMacro(Scale, ScaleType);
85 
90  void SetParameters(const ParametersType& parameters) override;
91 
96  ParametersType& GetParameters(void) const override;
97 
102  void SetFixedParameters(const ParametersType& param) override
103  {
104  this->m_FixedParameters = param;
105  }
106 
111  const ParametersType& GetFixedParameters(void) const override
112  {
113  return this->m_FixedParameters;
114  }
115 
121  OutputPointType TransformPoint(const InputPointType& point) const override;
122 
128  using Superclass::TransformVector;
129  OutputVectorType TransformVector(const InputVectorType& vector) const override;
130 
136  OutputVnlVectorType TransformVector(const InputVnlVectorType& vector) const override;
137 
138 protected:
141 
143  ~LogPolarTransform() override;
144 
146  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
147 
148 private:
149  LogPolarTransform(const Self&) = delete;
150  void operator=(const Self&) = delete;
151 
154 };
155 } // end namespace otb
156 #ifndef OTB_MANUAL_INSTANTIATION
157 #include "otbLogPolarTransform.hxx"
158 #endif
159 
160 #endif
otb::LogPolarTransform::ParametersType
Superclass::ParametersType ParametersType
Definition: otbLogPolarTransform.h:74
otb::LogPolarTransform::OutputVectorType
Superclass::OutputVectorType OutputVectorType
Definition: otbLogPolarTransform.h:71
otb::LogPolarTransform::ScalarType
TScalarType ScalarType
Definition: otbLogPolarTransform.h:62
otb::LogPolarTransform::m_Center
InputPointType m_Center
Definition: otbLogPolarTransform.h:152
otb::LogPolarTransform::InputPointType
Superclass::InputPointType InputPointType
Definition: otbLogPolarTransform.h:68
otb::LogPolarTransform::Self
LogPolarTransform Self
Definition: otbLogPolarTransform.h:53
otb::LogPolarTransform::GetFixedParameters
const ParametersType & GetFixedParameters(void) const override
Definition: otbLogPolarTransform.h:111
otb::LogPolarTransform::OutputPointType
Superclass::OutputPointType OutputPointType
Definition: otbLogPolarTransform.h:69
otbTransform.h
otb::Transform::OutputPointType
itk::Point< TScalarType, NOutputDimensions > OutputPointType
Definition: otbTransform.h:95
otbLogPolarTransform.hxx
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Transform::InputPointType
itk::Point< TScalarType, NInputDimensions > InputPointType
Definition: otbTransform.h:94
otb::Transform::OutputVectorType
itk::Vector< TScalarType, NOutputDimensions > OutputVectorType
Definition: otbTransform.h:83
otb::LogPolarTransform::m_Scale
ScaleType m_Scale
Definition: otbLogPolarTransform.h:153
otb::Transform
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:39
otb::LogPolarTransform::ScaleType
itk::FixedArray< TScalarType, 2 > ScaleType
Definition: otbLogPolarTransform.h:75
otb::LogPolarTransform
Implement the log-polar coordinate transform.
Definition: otbLogPolarTransform.h:49
otb::LogPolarTransform::OutputVnlVectorType
Superclass::OutputVnlVectorType OutputVnlVectorType
Definition: otbLogPolarTransform.h:73
otb::LogPolarTransform::InputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
Definition: otbLogPolarTransform.h:72
otb::LogPolarTransform::Superclass
Transform< TScalarType, 2, 2 > Superclass
Definition: otbLogPolarTransform.h:54
otb::LogPolarTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbLogPolarTransform.h:56
otb::Transform::OutputVnlVectorType
vnl_vector_fixed< TScalarType, NOutputDimensions > OutputVnlVectorType
Definition: otbTransform.h:91
otb::LogPolarTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbLogPolarTransform.h:55
otb::LogPolarTransform::SetFixedParameters
void SetFixedParameters(const ParametersType &param) override
Definition: otbLogPolarTransform.h:102
otb::LogPolarTransform::InputVectorType
Superclass::InputVectorType InputVectorType
Definition: otbLogPolarTransform.h:70