OTB  10.0.0
Orfeo Toolbox
otbProspectModel.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 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);
69 
71  void GenerateData() override;
72 
77 
78 protected:
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
Data class containing Leaf Parameters.
This class implements the Prospect Model (see http://teledetection.ipgp.jussieu.fr/prosail/),...
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
itk::SmartPointer< Self > Pointer
ProspectModel Self
LeafParametersType * GetInput()
SimulationStep1Base Superclass
SpectralResponseType * GetTransmittance() override
void SetInput(const LeafParametersType *object)
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void operator=(const Self &)=delete
virtual void SetInput(const ParametersType &)
otb::LeafParameters LeafParametersType
void GenerateData() override
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType) override
double Tav(const int theta, double ref)
ProspectModel(const Self &)=delete
SpectralResponseType * GetReflectance() override
itk::SmartPointer< const Self > ConstPointer
Superclass::ParametersType ParametersType
~ProspectModel() override
Superclass::SpectralResponseType SpectralResponseType
Base class for all method that simulate the Reflectance and Transmittance of an object....
itk::Array< ParametersValueType > ParametersType
This class represents the spectral response of an object (or a satellite band).
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.