Commit 0acd38b1 authored by Cedric's avatar Cedric
Browse files

ENH: added stat computation step

No related merge requests found
Showing with 8 additions and 0 deletions
+8 -0
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#include "otbWrapperApplication.h" #include "otbWrapperApplication.h"
#include "otbWrapperApplicationFactory.h" #include "otbWrapperApplicationFactory.h"
#include "otbStreamingStatisticsVectorImageFilter.h"
namespace otb namespace otb
{ {
namespace Wrapper namespace Wrapper
...@@ -40,6 +42,9 @@ public: ...@@ -40,6 +42,9 @@ public:
itkTypeMacro(EndmemberNumberEstimation, otb::Application); itkTypeMacro(EndmemberNumberEstimation, otb::Application);
typedef otb::StreamingStatisticsVectorImageFilter<FloatVectorImageType, float>
StreamingStatisticsVectorImageFilterType;
private: private:
void DoInit() override void DoInit() override
{ {
...@@ -83,7 +88,10 @@ private: ...@@ -83,7 +88,10 @@ private:
void DoExecute() override void DoExecute() override
{ {
auto statisticsFilter = StreamingStatisticsVectorImageFilterType::New();
statisticsFilter->SetInput(GetParameterImage("in"));
statisticsFilter->Update();
} }
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment