OTB  5.0.0
Orfeo Toolbox
otbTerraSarBrightnessFunctor.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  Some parts of this code are derived from ITK. See ITKCopyright.txt
14  for details.
15 
16 
17  This software is distributed WITHOUT ANY WARRANTY; without even
18  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19  PURPOSE. See the above copyright notices for more information.
20 
21 =========================================================================*/
22 #ifndef __otbTerraSarBrightnessFunctor_h
23 #define __otbTerraSarBrightnessFunctor_h
24 
25 #include "otbMath.h"
26 
27 #include <complex>
28 
29 namespace otb
30 {
31 namespace Functor
32 {
51 template <class TInput, class TOutput>
53 {
54 public:
57 
59  void SetCalibrationFactor(double val)
60  {
61  m_CalibrationFactor = val;
62  }
63 
65  {
66  return m_CalibrationFactor;
67  }
68 
70  void SetResultsInDecibels(bool db)
71  {
73  }
74 
77  {
78  return m_ResultsInDecibels;
79  }
80 
82  void SetDefaultValue(double db)
83  {
84  m_DefaultValue = db;
85  }
86 
89  {
90  return m_DefaultValue;
91  }
92 
94  inline TOutput operator ()(const TInput& inPix);
95 
97  inline std::complex<TOutput> operator ()(const std::complex<TInput>& inPix);
98 
99 private:
102 
105 
108 };
109 
110 } // end namespace functor
111 } // end namespace otb
112 
113 #ifndef OTB_MANUAL_INSTANTIATION
115 #endif
116 
117 #endif