OTB  6.1.0
Orfeo Toolbox
otbTerraSarBrightnessFunctor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2011 Insight Software Consortium
3  * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
4  *
5  * This file is part of Orfeo Toolbox
6  *
7  * https://www.orfeo-toolbox.org/
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
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