OTB  10.0.0
Orfeo Toolbox
otbPhysicalToRPCSensorModelImageFilter.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 otbPhysicalToRPCSensorModelImageFilter_h
22 #define otbPhysicalToRPCSensorModelImageFilter_h
23 
25 #include "otbGenericRSTransform.h"
26 
27 
28 namespace otb
29 {
30 
61 template <class TImage>
62 class ITK_EXPORT PhysicalToRPCSensorModelImageFilter : public itk::CastImageFilter<TImage, TImage>
63 {
64 public:
67  typedef itk::CastImageFilter<TImage, TImage> Superclass;
68  typedef itk::SmartPointer<Self> Pointer;
69  typedef itk::SmartPointer<const Self> ConstPointer;
70 
72  itkNewMacro(Self);
73 
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:
132  void operator=(const Self&) = delete;
133 
136 
139 };
140 } // end of namespace otb
141 
142 #ifndef OTB_MANUAL_INSTANTIATION
144 #endif
145 
146 #endif
Casts input pixels to output pixel type.
This filter estimates a RPC sensor models from GCPs.
std::pair< Point2DType, Point3DType > GCPType
This is the class to handle generic remote sensing transform.
itk::SmartPointer< Self > Pointer
This filter estimates a RPC sensor models from a physical model.
PhysicalToRPCSensorModelImageFilter(const Self &)=delete
GCPsToSensorModelType::ErrorsContainerType ErrorsContainerType
void operator=(const Self &)=delete
GCPsToSensorModelType::GCPsContainerType GCPsContainerType
GCPsToRPCSensorModelImageFilter< ImageType > GCPsToSensorModelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.