OTB  6.7.0
Orfeo Toolbox
otbPhysicalToRPCSensorModelImageFilter.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 otbPhysicalToRPCSensorModelImageFilter_h
22 #define otbPhysicalToRPCSensorModelImageFilter_h
23 
25 #include "otbGenericRSTransform.h"
26 
27 
28 namespace otb {
29 
60 template <class TImage>
62  public itk::CastImageFilter<TImage, TImage>
63 {
64 public:
70 
72  itkNewMacro(Self);
73 
75  itkTypeMacro(PhysicalToRPCSensorModelImageFilter, CastImageFilter);
76 
78  typedef TImage ImageType;
79  typedef typename ImageType::PointType PointType;
80  typedef typename ImageType::SizeType SizeType;
81 
90 
94 
96  itkSetMacro(GridSize, SizeType);
97  itkGetConstReferenceMacro(GridSize, SizeType);
99 
101  void SetGridSize(unsigned int inSize)
102  {
103  SizeType iSize;
104  iSize.Fill(inSize);
106 
107  if(m_GridSize != iSize)
108  {
109  m_GridSize = iSize;
110  this->Modified();
111  }
112  }
113 
115  void Modified() const override;
116 
117 protected:
120 
123 
125  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
126 
128  void GenerateOutputInformation() override;
129 
130 private:
131  PhysicalToRPCSensorModelImageFilter(const Self &) = delete;
132  void operator =(const Self&) = delete;
133 
136 
139 
140 };
141 } // end of namespace otb
142 
143 #ifndef OTB_MANUAL_INSTANTIATION
145 #endif
146 
147 #endif
itk::Size< Monteverdi_DIMENSION > SizeType
Definition: mvdTypes.h:137
This filter estimates a RPC sensor models from a physical model.
This filter estimates a RPC sensor models from GCPs.
std::pair< Point2DType, Point3DType > GCPType
GCPsToSensorModelType::ErrorsContainerType ErrorsContainerType
GCPsToSensorModelType::GCPsContainerType GCPsContainerType
This is the class to handle generic remote sensing transform.
GCPsToRPCSensorModelImageFilter< ImageType > GCPsToSensorModelType
VectorImageType::PointType PointType
Definition: mvdTypes.h:189