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

output the vector after classification (debug)

parent f9551364
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,7 @@ private: ...@@ -210,6 +210,7 @@ private:
input->PushBack(mv); input->PushBack(mv);
} }
std::cout << input->GetMeasurementVector(0) << std::endl;
// Statistics for shift/scale // Statistics for shift/scale
MeasurementType meanMeasurementVector; MeasurementType meanMeasurementVector;
MeasurementType stddevMeasurementVector; MeasurementType stddevMeasurementVector;
...@@ -240,7 +241,8 @@ private: ...@@ -240,7 +241,8 @@ private:
otbAppLogINFO("Loading model"); otbAppLogINFO("Loading model");
m_Model = MachineLearningModelFactoryType::CreateMachineLearningModel(GetParameterString("model"), m_Model = MachineLearningModelFactoryType::CreateMachineLearningModel(GetParameterString("model"),
MachineLearningModelFactoryType::ReadMode); MachineLearningModelFactoryType::ReadMode);
std::cout << "model_loaded" << std::endl;
if (m_Model.IsNull()) if (m_Model.IsNull())
{ {
otbAppLogFATAL(<< "Error when loading model " << GetParameterString("model") << " : unsupported model type"); otbAppLogFATAL(<< "Error when loading model " << GetParameterString("model") << " : unsupported model type");
......
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