OTB  9.0.0
Orfeo Toolbox
otbProspectModel.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 otbProspectModel_h
22 #define otbProspectModel_h
23 
24 #include "OTBSimulationExport.h"
25 #include "otbLeafParameters.h"
26 
27 #include "otbDataSpecP5B.h"
28 #include "otbSimulationStep1Base.h"
29 
30 namespace otb
31 {
43 class OTBSimulation_EXPORT ProspectModel : public SimulationStep1Base
44 {
45 public:
49  typedef itk::SmartPointer<Self> Pointer;
50  typedef itk::SmartPointer<const Self> ConstPointer;
51 
55 
56  typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType;
57 
59  itkNewMacro(Self);
60  itkTypeMacro(ProspectModel, SpectrumGeneratorBase);
62 
64  using Superclass::SetInput;
65  virtual void SetInput(const ParametersType&);
66  void SetInput(const LeafParametersType* object);
67  LeafParametersType* GetInput();
69 
71  void GenerateData() override;
72 
74  SpectralResponseType* GetReflectance() override;
75  SpectralResponseType* GetTransmittance() override;
77 
78 protected:
80  ProspectModel();
81 
83  ~ProspectModel() override;
84 
86  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
87 
88  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType) override;
89  using Superclass::MakeOutput;
90 
92  double Tav(const int theta, double ref);
93 
94 private:
95  ProspectModel(const Self&) = delete;
96  void operator=(const Self&) = delete;
97 };
98 
99 } // end namespace otb
100 
101 #endif
otb::ProspectModel::DataObjectPointerArraySizeType
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
Definition: otbProspectModel.h:56
otb::ProspectModel::Superclass
SimulationStep1Base Superclass
Definition: otbProspectModel.h:48
otb::ProspectModel::ParametersType
Superclass::ParametersType ParametersType
Definition: otbProspectModel.h:54
otb::ProspectModel::Self
ProspectModel Self
Definition: otbProspectModel.h:47
otbLeafParameters.h
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otbDataSpecP5B.h
otb::SimulationStep1Base::ParametersType
itk::Array< ParametersValueType > ParametersType
Definition: otbSimulationStep1Base.h:54
otb::LeafParameters
Data class containing Leaf Parameters.
Definition: otbLeafParameters.h:40
otbSimulationStep1Base.h
otb::ProspectModel::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbProspectModel.h:50
otb::ProspectModel
This class implements the Prospect Model (see http://teledetection.ipgp.jussieu.fr/prosail/),...
Definition: otbProspectModel.h:43
otb::ProspectModel::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbProspectModel.h:49
otb::SpectralResponse
This class represents the spectral response of an object (or a satellite band).
Definition: otbSpectralResponse.h:55
otb::SimulationStep1Base
Base class for all method that simulate the Reflectance and Transmittance of an object....
Definition: otbSimulationStep1Base.h:43
otb::ProspectModel::LeafParametersType
otb::LeafParameters LeafParametersType
Definition: otbProspectModel.h:52
otb::ProspectModel::SpectralResponseType
Superclass::SpectralResponseType SpectralResponseType
Definition: otbProspectModel.h:53