OTB  6.1.0
Orfeo Toolbox
otbAtmosphericEffects.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 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 otbAtmosphericEffects_h
22 #define otbAtmosphericEffects_h
23 
25 
26 namespace otb
27 {
39 template <class TSpectralResponse , class TRSR>
41  : public itk::DataObject
42  {
43  public:
49 
53  typedef TSpectralResponse InputSpectralResponseType;
54 
58  typedef TRSR InputRSRType;
59 
60  typedef typename InputRSRType::Pointer InputRSRPointerType;
61  typedef typename InputSpectralResponseType::Pointer InputSpectralResponsePointerType;
62 
63  typedef typename InputRSRType::PrecisionType PrecisionType;
64  typedef typename InputRSRType::ValuePrecisionType ValuePrecisionType;
65  typedef typename InputSpectralResponseType::PairType PairType;
66 
67 
70 
72  itkNewMacro(Self);
73  itkTypeMacro(AtmosphericEffects, DataObject);
75 
76  itkGetConstObjectMacro(InputSatRSR, InputRSRType);
77  itkSetObjectMacro(InputSatRSR, InputRSRType);
78 
79  itkGetConstObjectMacro(InputSpectralResponse, InputSpectralResponseType);
80  itkSetObjectMacro(InputSpectralResponse, InputSpectralResponseType);
81 
84  {
85  m_AtmosphericRadiativeTerms = atmoRadTerms;
86  this->Modified();
87  }
89  //itkSetObjectMacro(AtmosphericRadiativeTerms, AtmosphericRadiativeTermsType);
91 
92  itkGetObjectMacro(CorrectedSpectralResponse, InputSpectralResponseType);
93 
94 
95 // void LoadFilterFunctionAtmosphericCorrectionParameters( double step = 0.0025);
96  void Process(/*const unsigned int numBand*/);
97 
98  protected:
101 
103  //AtmosphericEffects( const std::string & filename );
104 
106  ~AtmosphericEffects() ITK_OVERRIDE {};
107 
109  //void PrintSelf(std::ostream& os, itk::Indent indent) const;
110 
111 
112  private:
113  AtmosphericEffects(const Self&); //purposely not implemented
114  void operator=(const Self&); //purposely not implemented
115 
120 
122 
123  };
124 }// end namespace otb
125 
126 
127 #ifndef OTB_MANUAL_INSTANTIATION
128 #include "otbAtmosphericEffects.txx"
129 #endif
130 
131 #endif
InputSpectralResponseType::PairType PairType
AtmosphericRadiativeTermsType::Pointer AtmosphericRadiativeTermsPointerType
InputSpectralResponseType::Pointer InputSpectralResponsePointerType
void operator=(const Self &)
InputRSRType::Pointer InputRSRPointerType
InputSpectralResponsePointerType m_InputSpectralResponse
InputRSRType::ValuePrecisionType ValuePrecisionType
void SetAtmosphericRadiativeTerms(AtmosphericRadiativeTermsPointerType atmoRadTerms)
InputRSRType::PrecisionType PrecisionType
itk::SmartPointer< Self > Pointer
This class applies atmospheric effects, computed from otbAtmosphericCorrectionParametersTo6SRadiative...
InputRSRPointerType m_InputSatRSR
virtual void Modified() const
This class is a vector of AtmosphericRadiativeTermsSingleChannel, it contains all atmospheric radiati...
InputSpectralResponsePointerType m_CorrectedSpectralResponse
itkGetObjectMacro(CorrectedSpectralResponse, InputSpectralResponseType)
otb::AtmosphericRadiativeTerms AtmosphericRadiativeTermsType
itk::SmartPointer< const Self > ConstPointer
TSpectralResponse InputSpectralResponseType
AtmosphericRadiativeTermsPointerType m_AtmosphericRadiativeTerms