Orfeo Toolbox  4.0
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 {
49 template <class TInput, class TOutput>
51 {
52 public:
55 
57  void SetCalibrationFactor(double val)
58  {
59  m_CalibrationFactor = val;
60  }
61 
63  {
64  return m_CalibrationFactor;
65  }
66 
68  void SetResultsInDecibels(bool db)
69  {
71  }
72 
75  {
76  return m_ResultsInDecibels;
77  }
78 
80  void SetDefaultValue(double db)
81  {
82  m_DefaultValue = db;
83  }
84 
87  {
88  return m_DefaultValue;
89  }
90 
92  inline TOutput operator ()(const TInput& inPix);
94  inline std::complex<TOutput> operator ()(const std::complex<TInput>& inPix);
95 
96 private:
99 
102 
105 };
106 
107 } // end namespace functor
108 } // end namespace otb
109 
110 #ifndef OTB_MANUAL_INSTANTIATION
112 #endif
113 
114 #endif

Generated at Sat Mar 8 2014 16:22:07 for Orfeo Toolbox with doxygen 1.8.3.1