From f830632bd42b58a3392151f29acdf5568c00356b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <traizetc@cesbio.cnes.fr> Date: Thu, 20 Jul 2017 15:23:58 +0200 Subject: [PATCH] output the vector after classification (debug) --- .../AppClassification/app/otbVectorClassifier.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx b/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx index 61d3a691f4..9f37f870ea 100644 --- a/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx +++ b/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx @@ -210,6 +210,7 @@ private: input->PushBack(mv); } + std::cout << input->GetMeasurementVector(0) << std::endl; // Statistics for shift/scale MeasurementType meanMeasurementVector; MeasurementType stddevMeasurementVector; @@ -240,7 +241,8 @@ private: otbAppLogINFO("Loading model"); m_Model = MachineLearningModelFactoryType::CreateMachineLearningModel(GetParameterString("model"), MachineLearningModelFactoryType::ReadMode); - + std::cout << "model_loaded" << std::endl; + if (m_Model.IsNull()) { otbAppLogFATAL(<< "Error when loading model " << GetParameterString("model") << " : unsupported model type"); -- GitLab