OTB  6.7.0
Orfeo Toolbox
otbOpticalImageMetadataInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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 otbOpticalImageMetadataInterface_h
22 #define otbOpticalImageMetadataInterface_h
23 
24 #include <string>
25 
28 #include "otbObjectList.h"
29 
30 namespace otb
31 {
40 {
41 public:
42 
47 
50 
51  typedef Superclass::ImageType ImageType;
52  typedef Superclass::MetaDataDictionaryType MetaDataDictionaryType;
55  typedef Superclass::ImageKeywordlistType ImageKeywordlistType;
56 
60 
62  double GetSunElevation() const;
63 
65  double GetSunAzimuth() const;
66 
68  virtual double GetSatElevation() const = 0;
69 
71  virtual double GetSatAzimuth() const = 0;
72 
74  virtual VariableLengthVectorType GetPhysicalBias() const = 0;
75 
77  virtual VariableLengthVectorType GetPhysicalGain() const = 0;
78 
80  virtual VariableLengthVectorType GetSolarIrradiance() const = 0;
81 
83  virtual VariableLengthVectorType GetFirstWavelengths() const = 0;
84 
86  virtual VariableLengthVectorType GetLastWavelengths() const = 0;
87 
89  std::vector<std::string> GetEnhancedBandNames() const override = 0;
90 
95  virtual unsigned int BandIndexToWavelengthPosition(unsigned int i) const;
96 
99  virtual WavelengthSpectralBandVectorType GetSpectralSensitivity () const = 0;
100 protected:
104 
105  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
106 
107 
108 private:
109  OpticalImageMetadataInterface(const Self &) = delete;
110  void operator =(const Self&) = delete;
111 
112 };
113 
114 } // end namespace otb
115 
116 #endif
Base class for captor metadata reading.
Superclass::VariableLengthVectorType VariableLengthVectorType
std::vector< double > VectorType
itk::VariableLengthVector< double > VariableLengthVectorType
otb::ObjectList< FilterFunctionValuesType > InternalWavelengthSpectralBandVectorType
Superclass::ImageKeywordlistType ImageKeywordlistType
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >...
Definition: otbObjectList.h:40
InternalWavelengthSpectralBandVectorType::Pointer WavelengthSpectralBandVectorType
Class for Optical captor metadata reading.
This class contains the values of the filter function for the processed spectral band.
Superclass::MetaDataDictionaryType MetaDataDictionaryType