OTB  6.7.0
Orfeo Toolbox
otbInverseSensorModel.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 otbInverseSensorModel_h
22 #define otbInverseSensorModel_h
23 
24 #include "otbSensorModelBase.h"
25 
26 #include "itkMacro.h"
27 #include "itkObject.h"
28 
29 namespace otb
30 {
31 
47 template <class TScalarType,
48  unsigned int NInputDimensions = 2,
49  unsigned int NOutputDimensions = 2>
50 class ITK_EXPORT InverseSensorModel : public SensorModelBase<TScalarType,
51  NInputDimensions,
52  NOutputDimensions>
53 {
54 
55 public:
58  typedef SensorModelBase<TScalarType,
59  NInputDimensions,
60  NOutputDimensions> Superclass;
63 
64  typedef typename Superclass::InputPointType InputPointType;
66 
68  itkNewMacro(Self);
69 
71  itkTypeMacro(InverseSensorModel, SensorModelBase);
72 
73  itkStaticConstMacro(InputSpaceDimension, unsigned int, NInputDimensions);
74  itkStaticConstMacro(OutputSpaceDimension, unsigned int, NOutputDimensions);
75 
76  // Transform of geographic point in image sensor index
77  OutputPointType TransformPoint(const InputPointType& point) const override;
78  // Transform of geographic point in image sensor index -- Backward Compatibility
79  // OutputPointType TransformPoint(const InputPointType &point, double height) const;
80 
81 protected:
83  ~InverseSensorModel() override;
84 
86  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
87 
88 private:
89 
90  InverseSensorModel(const Self &) = delete;
91  void operator =(const Self&) = delete;
92 
93 };
94 
95 } // namespace otb
96 
97 #ifndef OTB_MANUAL_INSTANTIATION
99 #endif
100 
101 #endif
itk::SmartPointer< const Self > ConstPointer
SensorModelBase< TScalarType, NInputDimensions, NOutputDimensions > Superclass
Class for inverse sensor models.
Superclass::InputPointType InputPointType
Base class for the sensor model projection classes.
itk::SmartPointer< Self > Pointer
Superclass::OutputPointType OutputPointType