OTB  9.0.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-2022 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  {
58  }
59 
61  void SetCalibrationFactor(double val)
62  {
63  m_CalibrationFactor = val;
64  }
65 
67  {
68  return m_CalibrationFactor;
69  }
70 
72  void SetResultsInDecibels(bool db)
73  {
75  }
76 
79  {
80  return m_ResultsInDecibels;
81  }
82 
84  void SetDefaultValue(double db)
85  {
86  m_DefaultValue = db;
87  }
88 
91  {
92  return m_DefaultValue;
93  }
94 
96  inline TOutput operator()(const TInput& inPix);
97 
99  inline std::complex<TOutput> operator()(const std::complex<TInput>& inPix);
100 
101 private:
104 
107 
110 };
111 
112 } // end namespace functor
113 } // end namespace otb
114 
115 #ifndef OTB_MANUAL_INSTANTIATION
117 #endif
118 
119 #endif
otbTerraSarBrightnessFunctor.hxx
otbMath.h
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Functor::TerraSarBrightnessFunctor::m_ResultsInDecibels
bool m_ResultsInDecibels
Definition: otbTerraSarBrightnessFunctor.h:106
otb::Functor::TerraSarBrightnessFunctor::~TerraSarBrightnessFunctor
virtual ~TerraSarBrightnessFunctor()
Definition: otbTerraSarBrightnessFunctor.h:56
otb::Functor::TerraSarBrightnessFunctor::operator()
TOutput operator()(const TInput &inPix)
Definition: otbTerraSarBrightnessFunctor.hxx:42
otb::Functor::TerraSarBrightnessFunctor
Compute beta naught coefficient.
Definition: otbTerraSarBrightnessFunctor.h:52
otb::Functor::TerraSarBrightnessFunctor::SetResultsInDecibels
void SetResultsInDecibels(bool db)
Definition: otbTerraSarBrightnessFunctor.h:72
otb::Functor::TerraSarBrightnessFunctor::TerraSarBrightnessFunctor
TerraSarBrightnessFunctor()
Definition: otbTerraSarBrightnessFunctor.hxx:34
otb::Functor::TerraSarBrightnessFunctor::SetCalibrationFactor
void SetCalibrationFactor(double val)
Definition: otbTerraSarBrightnessFunctor.h:61
otb::Functor::TerraSarBrightnessFunctor::GetResultsInDecibels
bool GetResultsInDecibels()
Definition: otbTerraSarBrightnessFunctor.h:78
otb::Functor::TerraSarBrightnessFunctor::GetDefaultValue
bool GetDefaultValue()
Definition: otbTerraSarBrightnessFunctor.h:90
otb::Functor::TerraSarBrightnessFunctor::SetDefaultValue
void SetDefaultValue(double db)
Definition: otbTerraSarBrightnessFunctor.h:84
otb::Functor::TerraSarBrightnessFunctor::GetCalibrationFactor
double GetCalibrationFactor()
Definition: otbTerraSarBrightnessFunctor.h:66
otb::Functor::TerraSarBrightnessFunctor::m_CalibrationFactor
double m_CalibrationFactor
Definition: otbTerraSarBrightnessFunctor.h:103
otb::Functor::TerraSarBrightnessFunctor::m_DefaultValue
double m_DefaultValue
Definition: otbTerraSarBrightnessFunctor.h:109