OTB  9.0.0
Orfeo Toolbox
otbLabelToProSailParameters.hxx
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 otbLabelToProSailParameters_hxx
22 #define otbLabelToProSailParameters_hxx
23 
24 #include "itkNumericTraits.h"
25 
26 #include "otbMacro.h"
28 
29 namespace otb
30 {
31 
32 template <class TLabel>
34 {
35  // default parameters
36  ParametersType Step1Parameters;
37  ParametersType Step2Parameters;
38 
39  Step1Parameters.SetSize(6);
40  Step2Parameters.SetSize(8);
41 
42  Step1Parameters[0] = 30.0;
43  Step1Parameters[1] = 10.0;
44  Step1Parameters[2] = 0.0;
45  Step1Parameters[3] = 0.015;
46  Step1Parameters[4] = 0.009;
47  Step1Parameters[5] = 1.2;
48 
49  Step2Parameters[0] = 2;
50  Step2Parameters[1] = 50;
51  Step2Parameters[2] = 1;
52  Step2Parameters[3] = 70;
53  Step2Parameters[4] = 0.2;
54  Step2Parameters[5] = 30;
55  Step2Parameters[6] = 0;
56  Step2Parameters[7] = 0;
57 
58  this->SetStep1Parameters(Step1Parameters);
59  this->SetStep2Parameters(Step2Parameters);
60 }
61 
62 // template <class TLabel>
63 // const typename LabelToProSailParameters<TLabel>::ParametersType &
64 // LabelToProSailParameters<TLabel>
65 //::GetStep1Parameters()
66 //{
67 // return this->m_Step1Parameters;
68 //}
69 
70 // template <class TLabel>
71 // const typename LabelToProSailParameters<TLabel>::ParametersType &
72 // LabelToProSailParameters<TLabel>
73 //::GetStep2Parameters()
74 //{
75 // return this->m_Step2Parameters;
76 //}
77 
78 
79 template <class TLabel>
81 {
82  ParametersType Step1Parameters = this->GetStep1Parameters();
83  ParametersType Step2Parameters = this->GetStep2Parameters();
84  otbMsgDevMacro(<< " Step1Parameters" << Step1Parameters << " Step2Parameters" << Step2Parameters);
85 }
86 
87 
88 } // end namespace otb
89 
90 #endif
otb::LabelToProSailParameters::ParametersType
Superclass::ParametersType ParametersType
Definition: otbLabelToProSailParameters.h:79
otb::LabelToProSailParameters::LabelToProSailParameters
LabelToProSailParameters()
Definition: otbLabelToProSailParameters.hxx:33
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otbMacro.h
otb::LabelToProSailParameters::GenerateData
void GenerateData() override
Definition: otbLabelToProSailParameters.hxx:80
otbMsgDevMacro
#define otbMsgDevMacro(x)
Definition: otbMacro.h:64
otbLabelToProSailParameters.h