OTB  6.7.0
Orfeo Toolbox
otbRandomForestsMachineLearningModelFactory.hxx
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 otbRandomForestsMachineLearningModelFactory_hxx
22 #define otbRandomForestsMachineLearningModelFactory_hxx
23 
25 
28 #include "itkVersion.h"
29 
30 namespace otb
31 {
32 
33 template <class TInputValue, class TOutputValue>
36 {
37 
38  std::string classOverride = std::string("otbMachineLearningModel");
39  std::string subclass = std::string("otbRandomForestsMachineLearningModel");
40 
41  this->RegisterOverride(classOverride.c_str(),
42  subclass.c_str(),
43  "RF ML Model",
44  1,
46 }
47 
48 template <class TInputValue, class TOutputValue>
51 {
52 }
53 
54 template <class TInputValue, class TOutputValue>
55 const char*
58 {
59  return ITK_SOURCE_VERSION;
60 }
61 
62 template <class TInputValue, class TOutputValue>
63 const char*
66 {
67  return "Random Forest machine learning model factory";
68 }
69 
70 } // end namespace otb
71 
72 #endif
#define ITK_SOURCE_VERSION