From 43a934388c45dc3aedce24e4f4db98a818d287e3 Mon Sep 17 00:00:00 2001 From: Cedric <cedric.traizet@c-s.fr> Date: Mon, 14 Jan 2019 15:02:25 +0100 Subject: [PATCH] ENH: added progress reporting to the statistic estimation step --- .../AppHyperspectral/app/otbEndmemberNumberEstimation.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx b/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx index cdb031e3f0..22853922cf 100644 --- a/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx +++ b/Modules/Applications/AppHyperspectral/app/otbEndmemberNumberEstimation.cxx @@ -133,7 +133,8 @@ private: otbAppLogINFO("Computing statistics on input image..."); auto statisticsFilter = StreamingStatisticsVectorImageFilterType::New(); statisticsFilter->SetInput(inputImage); - + AddProcess(statisticsFilter->GetStreamer(), "Statistic estimation step"); + statisticsFilter->Update(); auto correlationMatrix = statisticsFilter->GetCorrelation().GetVnlMatrix(); -- GitLab