Commit abac2ee1 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

master working again

No related merge requests found
Showing with 5 additions and 2 deletions
+5 -2
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
#include "otbImageToVectorImageCastFilter.h" #include "otbImageToVectorImageCastFilter.h"
#include "otbMachineLearningModelFactory.h" #include "otbMachineLearningModelFactory.h"
//#include "DimensionalityReductionModelFactory.h" // new branch
namespace otb namespace otb
{ {
namespace Functor namespace Functor
...@@ -202,7 +205,7 @@ private: ...@@ -202,7 +205,7 @@ private:
m_Model->Load(GetParameterString("model")); m_Model->Load(GetParameterString("model"));
m_Model->SetRegressionMode(true); m_Model->SetRegressionMode(true);
otbAppLogINFO("Model loaded"); otbAppLogINFO("Model loaded");
// Classify // Classify
m_ClassificationFilter = ClassificationFilterType::New(); m_ClassificationFilter = ClassificationFilterType::New();
m_ClassificationFilter->SetModel(m_Model); m_ClassificationFilter->SetModel(m_Model);
...@@ -265,7 +268,7 @@ private: ...@@ -265,7 +268,7 @@ private:
} }
SetParameterOutputImage<FloatImageType>("out", outputImage); SetParameterOutputImage<FloatImageType>("out", outputImage);
} }
ClassificationFilterType::Pointer m_ClassificationFilter; ClassificationFilterType::Pointer m_ClassificationFilter;
......
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