OTB  9.0.0
Orfeo Toolbox
otbFuzzyDescriptorsModelManager.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 otbFuzzyDescriptorsModelManager_h
22 #define otbFuzzyDescriptorsModelManager_h
23 
24 #include <vector>
25 #include <utility>
26 #include <string>
27 
28 
29 namespace otb
30 {
31 
44 {
45 public:
48 
50  typedef std::vector<double> ParameterType;
51  typedef std::pair<std::string, ParameterType> PairType;
52  typedef std::vector<PairType> DescriptorsModelType;
53  typedef std::vector<std::string> DescriptorListType;
54 
56  static PairType GetDescriptor(const char* model, const DescriptorsModelType& descModel);
57 
60 
62  static void AddDescriptor(PairType modelPair, DescriptorsModelType& descModel);
63  static void AddDescriptor(std::string key, ParameterType model, DescriptorsModelType& descModel);
64 
66  static void Print(const DescriptorsModelType& descModel);
67 
69  static DescriptorsModelType Read(const std::string& filename);
70 
72  static void Save(const std::string& filename, DescriptorsModelType& model);
73 
76  {
77  }
78 
79 
80 private:
81 }; // end of class FuzzyDescriptorsModelManager
82 
83 } // end of namespace otb
84 
85 #endif
otb::FuzzyDescriptorsModelManager::ParameterType
std::vector< double > ParameterType
Definition: otbFuzzyDescriptorsModelManager.h:50
otb::FuzzyDescriptorsModelManager::AddDescriptor
static void AddDescriptor(PairType modelPair, DescriptorsModelType &descModel)
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::FuzzyDescriptorsModelManager::Read
static DescriptorsModelType Read(const std::string &filename)
otb::FuzzyDescriptorsModelManager::Self
FuzzyDescriptorsModelManager Self
Definition: otbFuzzyDescriptorsModelManager.h:47
otb::FuzzyDescriptorsModelManager::Print
static void Print(const DescriptorsModelType &descModel)
otb::FuzzyDescriptorsModelManager::PairType
std::pair< std::string, ParameterType > PairType
Definition: otbFuzzyDescriptorsModelManager.h:51
otb::FuzzyDescriptorsModelManager::GetDescriptorList
static DescriptorListType GetDescriptorList(const DescriptorsModelType &descModel)
otb::FuzzyDescriptorsModelManager::DescriptorsModelType
std::vector< PairType > DescriptorsModelType
Definition: otbFuzzyDescriptorsModelManager.h:52
otb::FuzzyDescriptorsModelManager::FuzzyDescriptorsModelManager
FuzzyDescriptorsModelManager()
otb::FuzzyDescriptorsModelManager::~FuzzyDescriptorsModelManager
virtual ~FuzzyDescriptorsModelManager()
Definition: otbFuzzyDescriptorsModelManager.h:75
otb::FuzzyDescriptorsModelManager::DescriptorListType
std::vector< std::string > DescriptorListType
Definition: otbFuzzyDescriptorsModelManager.h:53
otb::FuzzyDescriptorsModelManager::GetDescriptor
static PairType GetDescriptor(const char *model, const DescriptorsModelType &descModel)
otb::FuzzyDescriptorsModelManager
Read a xml file where are stored several statistics.
Definition: otbFuzzyDescriptorsModelManager.h:43
otb::FuzzyDescriptorsModelManager::Save
static void Save(const std::string &filename, DescriptorsModelType &model)