OTB  9.0.0
Orfeo Toolbox
otbPhysicalToRPCSensorModelImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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 
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 } // end of namespace otb
141 
142 #ifndef OTB_MANUAL_INSTANTIATION
144 #endif
145 
146 #endif
otb::GenericRSTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbGenericRSTransform.h:66
otb::PhysicalToRPCSensorModelImageFilter::RSTransformType
GenericRSTransform RSTransformType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:92
otb::GCPsToRPCSensorModelImageFilter::ErrorsContainerType
std::vector< double > ErrorsContainerType
Definition: otbGCPsToRPCSensorModelImageFilter.h:92
otb::GCPsToRPCSensorModelImageFilter::GCPsContainerType
std::vector< GCPType > GCPsContainerType
Definition: otbGCPsToRPCSensorModelImageFilter.h:91
otb::PhysicalToRPCSensorModelImageFilter::GCPsContainerType
GCPsToSensorModelType::GCPsContainerType GCPsContainerType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:88
otb::PhysicalToRPCSensorModelImageFilter
This filter estimates a RPC sensor models from a physical model.
Definition: otbPhysicalToRPCSensorModelImageFilter.h:62
otb::GCPsToRPCSensorModelImageFilter::Point2DType
itk::Point< double, 2 > Point2DType
Definition: otbGCPsToRPCSensorModelImageFilter.h:88
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PhysicalToRPCSensorModelImageFilter::SetGridSize
void SetGridSize(unsigned int inSize)
Definition: otbPhysicalToRPCSensorModelImageFilter.h:101
otb::PhysicalToRPCSensorModelImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPhysicalToRPCSensorModelImageFilter.h:68
otb::PhysicalToRPCSensorModelImageFilter::RSTransformPointerType
RSTransformType::Pointer RSTransformPointerType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:93
otb::PhysicalToRPCSensorModelImageFilter::ImageType
TImage ImageType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:75
otb::PhysicalToRPCSensorModelImageFilter::PointType
ImageType::PointType PointType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:79
otbPhysicalToRPCSensorModelImageFilter.hxx
otb::PhysicalToRPCSensorModelImageFilter::SizeType
ImageType::SizeType SizeType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:80
otbGCPsToRPCSensorModelImageFilter.h
otb::GenericRSTransform
This is the class to handle generic remote sensing transform.
Definition: otbGenericRSTransform.h:57
otb::PhysicalToRPCSensorModelImageFilter::m_GridSize
SizeType m_GridSize
Definition: otbPhysicalToRPCSensorModelImageFilter.h:137
otb::PhysicalToRPCSensorModelImageFilter::GCPType
GCPsToSensorModelType::GCPType GCPType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:87
otb::GCPsToRPCSensorModelImageFilter::GCPType
std::pair< Point2DType, Point3DType > GCPType
Definition: otbGCPsToRPCSensorModelImageFilter.h:90
otbGenericRSTransform.h
otb::PhysicalToRPCSensorModelImageFilter::m_OutputInformationGenerated
bool m_OutputInformationGenerated
Definition: otbPhysicalToRPCSensorModelImageFilter.h:138
otb::PhysicalToRPCSensorModelImageFilter::GCPsToSensorModelPointerType
GCPsToSensorModelType::Pointer GCPsToSensorModelPointerType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:84
otb::PhysicalToRPCSensorModelImageFilter::Point2DType
GCPsToSensorModelType::Point2DType Point2DType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:85
otb::PhysicalToRPCSensorModelImageFilter::Point3DType
GCPsToSensorModelType::Point3DType Point3DType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:86
otb::GCPsToRPCSensorModelImageFilter::Point3DType
itk::Point< double, 3 > Point3DType
Definition: otbGCPsToRPCSensorModelImageFilter.h:89
otb::PhysicalToRPCSensorModelImageFilter::m_GCPsToSensorModelFilter
GCPsToSensorModelPointerType m_GCPsToSensorModelFilter
Definition: otbPhysicalToRPCSensorModelImageFilter.h:135
otb::PhysicalToRPCSensorModelImageFilter::GCPsToSensorModelType
GCPsToRPCSensorModelImageFilter< ImageType > GCPsToSensorModelType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:83
otb::GCPsToRPCSensorModelImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbGCPsToRPCSensorModelImageFilter.h:84
otb::GCPsToRPCSensorModelImageFilter
This filter estimates a RPC sensor models from GCPs.
Definition: otbGCPsToRPCSensorModelImageFilter.h:78
otb::PhysicalToRPCSensorModelImageFilter::ErrorsContainerType
GCPsToSensorModelType::ErrorsContainerType ErrorsContainerType
Definition: otbPhysicalToRPCSensorModelImageFilter.h:89
otb::PhysicalToRPCSensorModelImageFilter::Superclass
itk::CastImageFilter< TImage, TImage > Superclass
Definition: otbPhysicalToRPCSensorModelImageFilter.h:67
otb::PhysicalToRPCSensorModelImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPhysicalToRPCSensorModelImageFilter.h:69
otb::PhysicalToRPCSensorModelImageFilter::Self
PhysicalToRPCSensorModelImageFilter Self
Definition: otbPhysicalToRPCSensorModelImageFilter.h:66