OTB  6.7.0
Orfeo Toolbox
otbInverseLogPolarTransform.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 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
49  : public Transform<TScalarType, 2, 2>
50 {
51 public:
57 
59  itkNewMacro(Self);
60 
63 
65  typedef TScalarType ScalarType;
66 
68  typedef typename Superclass::InputPointType InputPointType;
69  typedef typename Superclass::OutputPointType OutputPointType;
70  typedef typename Superclass::InputVectorType InputVectorType;
72  typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
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  { this->m_FixedParameters = param; }
104 
109  const ParametersType& GetFixedParameters(void) const override{return this->m_FixedParameters; }
110 
116  using Superclass::TransformVector;
117  OutputPointType TransformPoint(const InputPointType& point) const override;
118 
124  OutputVectorType TransformVector(const InputVectorType& vector) const override;
125 
131  OutputVnlVectorType TransformVector(const InputVnlVectorType& vector) const override;
132 
133 protected:
136 
138  ~InverseLogPolarTransform() override;
139 
141  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
142 
143 private:
144  InverseLogPolarTransform(const Self &) = delete;
145  void operator =(const Self&) = delete;
146 
149 };
150 } // end namespace otb
151 #ifndef OTB_MANUAL_INSTANTIATION
153 #endif
154 
155 #endif
const ParametersType & GetFixedParameters(void) const override
Superclass::InputVnlVectorType InputVnlVectorType
itk::FixedArray< TScalarType, 2 > ScaleType
Superclass::ParametersType ParametersType
Superclass::OutputPointType OutputPointType
vnl_vector_fixed< TScalarType, NOutputDimensions > OutputVnlVectorType
Definition: otbTransform.h:88
itk::Array< double > ParametersType
Definition: mvdTypes.h:122
Transform< TScalarType, 2, 2 > Superclass
Superclass::OutputVectorType OutputVectorType
void SetFixedParameters(const ParametersType &param) override
Superclass::OutputVnlVectorType OutputVnlVectorType
This transform is the back transform of the LogPolarTransform.
Superclass::InputVectorType InputVectorType
Superclass::InputPointType InputPointType
itk::SmartPointer< const Self > ConstPointer
Class to overload method passed to virtual pure in ITK V4.
Definition: otbTransform.h:40