21 #ifndef otbAtmosphericEffects_hxx
22 #define otbAtmosphericEffects_hxx
30 template <
class TSpectralResponse,
class TRSR>
35 m_IsSetAtmosphericRadiativeTerms(false)
52 template <
class TSpectralResponse,
class TRSR>
117 typedef typename InputSpectralResponseType::ImageType ImageType;
120 typename SurfaceReflectanceToReflectanceFilterType::Pointer filterSRToR = SurfaceReflectanceToReflectanceFilterType::New();
122 filterSRToR->SetAtmosphericRadiativeTerms(m_AtmosphericRadiativeTerms);
124 typename ImageType::Pointer image = ImageType::New();
125 this->m_InputSpectralResponse->GetImage(image);
126 filterSRToR->SetInput(image);
127 filterSRToR->Update();
129 this->m_CorrectedSpectralResponse->SetFromImage(filterSRToR->GetOutput());