OTB  6.7.0
Orfeo Toolbox
otbFilterFunctionValues.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 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 otbFilterFunctionValues_h
22 #define otbFilterFunctionValues_h
23 
24 #include <vector>
25 
26 #include "itkDataObject.h"
27 #include "itkObjectFactory.h"
28 #include "itkMacro.h"
29 
30 #include "OTBOSSIMAdaptersExport.h"
31 
32 namespace otb
33 {
44 class OTBOSSIMAdapters_EXPORT FilterFunctionValues : public itk::DataObject
45 {
46 public:
52 
54  itkTypeMacro(FilterFunctionValues, DataObject);
55 
57  itkNewMacro(Self);
58 
59  typedef float WavelengthSpectralBandType;
60  typedef std::vector<WavelengthSpectralBandType> ValuesVectorType;
61 
64  {
65  m_FilterFunctionValues = vect;
66  this->Modified();
67  }
68 
71  {
72  return m_FilterFunctionValues;
73  }
74 
77  {
78  m_FilterFunctionValues6S = vect;
79  this->Modified();
80  }
81 
84  {
85  return m_FilterFunctionValues6S;
86  }
87 
89  itkSetMacro(MinSpectralValue, WavelengthSpectralBandType);
90 
92  itkGetMacro(MinSpectralValue, WavelengthSpectralBandType);
93 
95  itkSetMacro(MaxSpectralValue, WavelengthSpectralBandType);
96 
98  itkGetMacro(MaxSpectralValue, WavelengthSpectralBandType);
99 
101  itkSetMacro(UserStep, WavelengthSpectralBandType);
102 
104  itkGetMacro(UserStep, WavelengthSpectralBandType);
105 
107  WavelengthSpectralBandType GetCenterSpectralValue() const;
108 
109 protected:
112 
114  ~FilterFunctionValues() override {}
115 
117  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
118 
119 private:
120  FilterFunctionValues(const Self &) = delete;
121  void operator =(const Self&) = delete;
122 
125 
130 
133 
136 
139 };
140 
141 } //end namespace
142 
143 #endif
const ValuesVectorType & GetFilterFunctionValues6S() const
itk::SmartPointer< const Self > ConstPointer
WavelengthSpectralBandType m_UserStep
const ValuesVectorType & GetFilterFunctionValues() const
std::vector< WavelengthSpectralBandType > ValuesVectorType
WavelengthSpectralBandType m_MinSpectralValue
void SetFilterFunctionValues6S(const ValuesVectorType &vect)
void SetFilterFunctionValues(const ValuesVectorType &vect)
WavelengthSpectralBandType m_MaxSpectralValue
This class contains the values of the filter function for the processed spectral band.
itk::SmartPointer< Self > Pointer