Orfeo Toolbox  4.0
otbFilterFunctionValues.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbFilterFunctionValues_h
19 #define __otbFilterFunctionValues_h
20 
21 #include <vector>
22 #include <iostream>
23 
24 #include "itkDataObject.h"
25 #include "itkObjectFactory.h"
26 #include "itkMacro.h"
27 
28 namespace otb
29 {
38 class ITK_EXPORT FilterFunctionValues : public itk::DataObject
39 {
40 public:
46 
48  itkTypeMacro(FilterFunctionValues, DataObject);
49 
51  itkNewMacro(Self);
52 
53  typedef float WavelengthSpectralBandType;
54  typedef std::vector<WavelengthSpectralBandType> ValuesVectorType;
55 
57  void SetFilterFunctionValues(const ValuesVectorType& vect)
58  {
59  m_FilterFunctionValues = vect;
60  this->Modified();
61  }
63  const ValuesVectorType& GetFilterFunctionValues() const
64  {
65  return m_FilterFunctionValues;
66  }
68  void SetFilterFunctionValues6S(const ValuesVectorType& vect)
69  {
70  m_FilterFunctionValues6S = vect;
71  this->Modified();
72  }
74  const ValuesVectorType& GetFilterFunctionValues6S() const
75  {
76  return m_FilterFunctionValues6S;
77  }
78 
80  itkSetMacro(MinSpectralValue, WavelengthSpectralBandType);
82  itkGetMacro(MinSpectralValue, WavelengthSpectralBandType);
84  itkSetMacro(MaxSpectralValue, WavelengthSpectralBandType);
86  itkGetMacro(MaxSpectralValue, WavelengthSpectralBandType);
88  itkSetMacro(UserStep, WavelengthSpectralBandType);
90  itkGetMacro(UserStep, WavelengthSpectralBandType);
91 
93  WavelengthSpectralBandType GetCenterSpectralValue() const;
94 
95 protected:
100 
102  void PrintSelf(std::ostream& os, itk::Indent indent) const;
103 
104 private:
105  FilterFunctionValues(const Self &); //purposely not implemented
106  void operator =(const Self&); //purposely not implemented
107 
120 };
121 
122 } //end namespace
123 
124 #endif

Generated at Sat Mar 8 2014 15:55:44 for Orfeo Toolbox with doxygen 1.8.3.1