OTB  10.0.0
Orfeo Toolbox
otbLogPolarTransform.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 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
Implement the log-polar coordinate transform.
itk::SmartPointer< Self > Pointer
Superclass::ParametersType ParametersType
Superclass::InputPointType InputPointType
Superclass::InputVectorType InputVectorType
const ParametersType & GetFixedParameters(void) const override
itk::SmartPointer< const Self > ConstPointer
LogPolarTransform(const Self &)=delete
itk::FixedArray< TScalarType, 2 > ScaleType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
void operator=(const Self &)=delete
Superclass::OutputPointType OutputPointType
void SetFixedParameters(const ParametersType &param) override
Transform< TScalarType, 2, 2 > Superclass
Superclass::OutputVectorType OutputVectorType
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.