Skip to content
Snippets Groups Projects
Commit 0acd38b1 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: added stat computation step

parent ee12fbfd
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment