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