OTB  9.0.0
Orfeo Toolbox
otbFormosatImageMetadataInterface.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 otbFormosatImageMetadataInterface_h
22 #define otbFormosatImageMetadataInterface_h
23 
25 #include <string>
26 
27 namespace otb
28 {
37 {
38 public:
41  typedef itk::SmartPointer<Self> Pointer;
42  typedef itk::SmartPointer<const Self> ConstPointer;
43 
45  itkNewMacro(Self);
46 
49 
54 
59  unsigned int BandIndexToWavelengthPosition(unsigned int i) const override;
60 
61  void Parse(ImageMetadata &imd) override;
62 
63 protected:
65  ~FormosatImageMetadataInterface() = default;
66 
67 private:
68  FormosatImageMetadataInterface(const Self&) = delete;
69  void operator=(const Self&) = delete;
70 
71  void FetchSatAngles(
72  const std::vector<double> & incidenceAngles,
73  const std::vector<double> & alongTrackViewingAngles,
74  const std::vector<double> & acrossTrackViewingAngles,
75  const std::vector<double> & sceneOrientation,
76  const std::string & softwareVersion,
77  double satAzimuth,
78  ImageMetadata & imd);
79 
80 
83  void FetchSpectralSensitivity(ImageMetadata &);
84 };
86 
87 } // end namespace otb
88 
89 #endif
otb::FormosatImageMetadataInterface::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbFormosatImageMetadataInterface.h:42
otb::OpticalImageMetadataInterface
Class for Optical captor metadata reading.
Definition: otbOpticalImageMetadataInterface.h:39
otb::FormosatImageMetadataInterface::VectorType
Superclass::VectorType VectorType
Definition: otbFormosatImageMetadataInterface.h:52
otb::FormosatImageMetadataInterface
Creation of an "otb" FormosatImageMetadataInterface that gets metadata.
Definition: otbFormosatImageMetadataInterface.h:36
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::FormosatImageMetadataInterface::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbFormosatImageMetadataInterface.h:41
otb::FormosatImageMetadataInterface::Self
FormosatImageMetadataInterface Self
Definition: otbFormosatImageMetadataInterface.h:39
otbOpticalImageMetadataInterface.h
otb::ImageMetadataInterfaceBase::VariableLengthVectorType
MetaDataKey::VariableLengthVectorType VariableLengthVectorType
Definition: otbImageMetadataInterfaceBase.h:58
otb::ImageMetadataInterfaceBase::MetaDataDictionaryType
itk::MetaDataDictionary MetaDataDictionaryType
Definition: otbImageMetadataInterfaceBase.h:56
otb::FormosatImageMetadataInterface::VariableLengthVectorType
Superclass::VariableLengthVectorType VariableLengthVectorType
Definition: otbFormosatImageMetadataInterface.h:53
otb::ImageMetadataInterfaceBase::VectorType
MetaDataKey::VectorType VectorType
Definition: otbImageMetadataInterfaceBase.h:57
otb::ImageMetadataInterfaceBase
Base class for captor metadata reading.
Definition: otbImageMetadataInterfaceBase.h:44
otb::FormosatImageMetadataInterface::Superclass
ImageMetadataInterfaceBase Superclass
Definition: otbFormosatImageMetadataInterface.h:40
otb::FormosatImageMetadataInterface::MetaDataDictionaryType
Superclass::MetaDataDictionaryType MetaDataDictionaryType
Definition: otbFormosatImageMetadataInterface.h:51
otb::ImageMetadata
Generic class containing image metadata used in OTB.
Definition: otbImageMetadata.h:270
otb::FormosatImageMetadataInterface::ImageType
Superclass::ImageType ImageType
Definition: otbFormosatImageMetadataInterface.h:48
otb::ImageMetadataInterfaceBase::ImageType
itk::ImageBase< 2 > ImageType
Definition: otbImageMetadataInterfaceBase.h:53