22 #ifndef otbSarBrightnessFunctor_h
23 #define otbSarBrightnessFunctor_h
26 #include "itkNumericTraits.h"
41 template <
class TInput,
class TOutput>
47 typedef typename itk::NumericTraits<InputType>::AbsType
RealType;
50 : m_Noise(0.0), m_Scale(1.0), m_AntennaPatternNewGain(1.0), m_AntennaPatternOldGain(1.0), m_RangeSpreadLoss(1.0)
60 beta = m_Scale * (digitalNumber * digitalNumber - m_Noise);
61 beta *= m_AntennaPatternOldGain;
62 beta /= m_AntennaPatternNewGain;
63 beta *= m_RangeSpreadLoss;
100 m_AntennaPatternNewGain = value;
106 return m_AntennaPatternNewGain;
112 m_AntennaPatternOldGain = value;
118 return m_AntennaPatternOldGain;
124 m_RangeSpreadLoss = value;
130 return m_RangeSpreadLoss;