diff --git a/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx b/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx index 583a57c247053b78fdf94ca3702278c87378532f..2123ea15afe0f3affcf65af04cf252718049a998 100644 --- a/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx +++ b/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx @@ -21,6 +21,8 @@ #include "otbWrapperApplication.h" #include "otbWrapperApplicationFactory.h" +#include "otbStreamingStatisticsVectorImageFilter.h" + namespace otb { namespace Wrapper @@ -40,6 +42,9 @@ public: itkTypeMacro(EndmemberNumberEstimation, otb::Application); + typedef otb::StreamingStatisticsVectorImageFilter<FloatVectorImageType, float> + StreamingStatisticsVectorImageFilterType; + private: void DoInit() override { @@ -83,7 +88,10 @@ private: void DoExecute() override { + auto statisticsFilter = StreamingStatisticsVectorImageFilterType::New(); + statisticsFilter->SetInput(GetParameterImage("in")); + statisticsFilter->Update(); } };