22 #ifndef otbTerraSarBrightnessImageFilter_h
23 #define otbTerraSarBrightnessImageFilter_h
25 #include "itkUnaryFunctorImageFilter.h"
26 #include "itkMetaDataDictionary.h"
66 template <
class TInputImage,
class TOutputImage>
68 :
public itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, typename Functor::TerraSarBrightnessFunctor<
69 typename itk::NumericTraits<typename TInputImage::InternalPixelType>::ValueType,
70 typename itk::NumericTraits<typename TOutputImage::InternalPixelType>::ValueType>>
74 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
75 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
83 typedef typename itk::NumericTraits<InputInternalPixelType>::ValueType
InputValueType;
84 typedef typename itk::NumericTraits<OutputInternalPixelType>::ValueType
OutputValueType;
90 typedef itk::UnaryFunctorImageFilter<InputImageType, OutputImageType, FunctorType>
Superclass;
103 this->GetFunctor().SetCalibrationFactor(pCalibrationFactor);
111 return this->GetFunctor().GetCalibrationFactor();
117 this->GetFunctor().SetResultsInDecibels(db);
125 return this->GetFunctor().GetResultsInDecibels();
131 this->GetFunctor().SetResultsInDecibels(value);
138 return this->GetFunctor().SetResultsInDecibels();
151 void BeforeThreadedGenerateData()
override;
160 #ifndef OTB_MANUAL_INSTANTIATION
Compute beta naught coefficient.
Calculates the brightness of TerraSar sensor images.
TerraSarBrightnessImageFilter()
TInputImage InputImageType
InputImageType::InternalPixelType InputInternalPixelType
void operator=(const Self &)=delete
TerraSarBrightnessImageFilter(const Self &)=delete
void SetResultsInDecibels(bool db)
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
void SetCalibrationFactor(double pCalibrationFactor)
bool GetResultsInDecibels()
itk::NumericTraits< InputInternalPixelType >::ValueType InputValueType
itk::UnaryFunctorImageFilter< InputImageType, OutputImageType, FunctorType > Superclass
TerraSarBrightnessImageFilter Self
itk::MetaDataDictionary MetaDataDictionaryType
Functor::TerraSarBrightnessFunctor< InputValueType, OutputValueType > FunctorType
OutputImageType::InternalPixelType OutputInternalPixelType
double GetCalibrationFactor()
itk::NumericTraits< OutputInternalPixelType >::ValueType OutputValueType
void SetDefaultValue(double value)
~TerraSarBrightnessImageFilter() override
TOutputImage OutputImageType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.