diff --git a/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx b/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx index 61d3a691f4560c46d2f76427f49ca7423cd159b8..9f37f870ea7208391c050659ff213a09b57d0775 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");