Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Code
Radiometry
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>
50
class
TerraSarBrightnessFunctor
51
{
52
public
:
53
TerraSarBrightnessFunctor
();
54
virtual
~TerraSarBrightnessFunctor
() {}
55
57
void
SetCalibrationFactor
(
double
val)
58
{
59
m_CalibrationFactor
= val;
60
}
61
62
double
GetCalibrationFactor
()
63
{
64
return
m_CalibrationFactor
;
65
}
66
68
void
SetResultsInDecibels
(
bool
db)
69
{
70
m_ResultsInDecibels
= db;
71
}
72
74
bool
GetResultsInDecibels
()
75
{
76
return
m_ResultsInDecibels
;
77
}
78
80
void
SetDefaultValue
(
double
db)
81
{
82
m_DefaultValue
= db;
83
}
84
86
bool
GetDefaultValue
()
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
:
98
double
m_CalibrationFactor
;
99
101
bool
m_ResultsInDecibels
;
102
104
double
m_DefaultValue
;
105
};
106
107
}
// end namespace functor
108
}
// end namespace otb
109
110
#ifndef OTB_MANUAL_INSTANTIATION
111
#include "
otbTerraSarBrightnessFunctor.txx
"
112
#endif
113
114
#endif
Generated at Sun Feb 3 2013 00:51:24 for
Orfeo Toolbox
with
doxygen 1.8.1.1