22 #ifndef otbSarBrightnessToImageFilter_hxx
23 #define otbSarBrightnessToImageFilter_hxx
27 #include <boost/any.hpp>
35 template <
class TInputImage,
class TOutputImage>
40 template <
class TInputImage,
class TOutputImage>
44 Superclass::BeforeThreadedGenerateData();
47 auto imd = this->GetInput()->GetImageMetadata();
50 std::unique_ptr<SARCalib> sarCalibPtr;
53 sarCalibPtr = std::make_unique<SARCalib>(boost::any_cast<SARCalib>(imd[
MDGeom::SARCalib]));
57 sarCalibPtr = std::make_unique<SARCalib>(boost::any_cast<SARCalib>(imd.Bands[0][
MDGeom::SARCalib]));
60 throw std::runtime_error(
"otbSarBrightnessToImageFilter was not able to fetch the SARCalib metadata.");
70 noise->EvaluateParametricCoefficient();
75 antennaPatternNewGain->EvaluateParametricCoefficient();
80 antennaPatternOldGain->EvaluateParametricCoefficient();
85 rangeSpreadLoss->EvaluateParametricCoefficient();
88 this->Print(std::cout,
id);
92 template <
class TInputImage,
class TOutputImage>
95 Superclass::PrintSelf(os, indent);
97 if (this->GetFunction())
99 os << indent <<
"Function:\n";
100 this->GetFunction()->Print(os, indent.GetNextIndent());