OTB  6.7.0
Orfeo Toolbox
otbLogPolarTransform.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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
50  : public Transform<TScalarType, 2, 2>
51 {
52 public:
58 
60  itkNewMacro(Self);
61 
63  itkTypeMacro(LogPolarTransform, Transform);
64 
66  typedef TScalarType ScalarType;
67 
69  typedef typename Superclass::InputPointType InputPointType;
71  typedef typename Superclass::InputVectorType InputVectorType;
73  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
77 
79  itkSetMacro(Center, InputPointType);
80  itkGetConstReferenceMacro(Center, InputPointType);
82 
84  itkSetMacro(Scale, ScaleType);
85  itkGetConstReferenceMacro(Scale, ScaleType);
86 
91  void SetParameters(const ParametersType& parameters) override;
92 
97  ParametersType& GetParameters(void) const override;
98 
103  void SetFixedParameters( const ParametersType & param) override
104  { this->m_FixedParameters = param; }
105 
110  const ParametersType& GetFixedParameters(void) const override{return this->m_FixedParameters; }
111 
117  OutputPointType TransformPoint(const InputPointType& point) const override;
118 
124  using Superclass::TransformVector;
125  OutputVectorType TransformVector(const InputVectorType& vector) const override;
126 
132  OutputVnlVectorType TransformVector(const InputVnlVectorType& vector) const override;
133 
134 protected:
137 
139  ~LogPolarTransform() override;
140 
142  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
143 
144 private:
145  LogPolarTransform(const Self &) = delete;
146  void operator =(const Self&) = delete;
147 
150 };
151 } // end namespace otb
152 #ifndef OTB_MANUAL_INSTANTIATION
153 #include "otbLogPolarTransform.hxx"
154 #endif
155 
156 #endif
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
Superclass::OutputVectorType OutputVectorType
const ParametersType & GetFixedParameters(void) const override
void SetFixedParameters(const ParametersType &param) override
Superclass::InputPointType InputPointType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::InputVnlVectorType InputVnlVectorType
vnl_vector_fixed< TScalarType, NOutputDimensions > OutputVnlVectorType
Definition: otbTransform.h:88
itk::Array< double > ParametersType
Definition: mvdTypes.h:122
Implement the log-polar coordinate transform.
Superclass::OutputPointType OutputPointType
Superclass::InputVectorType InputVectorType
itk::FixedArray< TScalarType, 2 > ScaleType
Transform< TScalarType, 2, 2 > Superclass
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:40
Superclass::ParametersType ParametersType