Commit a62271fd authored by Julien Malik's avatar Julien Malik

COMP: do not use deprecated API in tests

parent d4b7365c
......@@ -509,7 +509,7 @@ private:
confMatCalc->SetReferenceLabels(validationLabeledListSample);
confMatCalc->SetProducedLabels(classifierListLabel);
confMatCalc->Update();
confMatCalc->Compute();
otbAppLogINFO("SVM training performances");
LogConfusionMatrix(confMatCalc);
......
......@@ -364,7 +364,7 @@ private:
confMatCalc->SetReferenceLabels(validationLabeledListSample);
confMatCalc->SetProducedLabels(classifierListLabel);
confMatCalc->Update();
confMatCalc->Compute();
otbAppLogINFO("SVM training performances");
std::string confMatString;
......
......@@ -295,7 +295,7 @@ int otbAtmosphericCorrectionsRSRSVMClassifier(int argc, char * argv[])
ConfusionMatrixCalculatorType::Pointer confMatCalc = ConfusionMatrixCalculatorType::New();
confMatCalc->SetReferenceLabels(groundTruthClassList);
confMatCalc->SetProducedLabels(classifierListLabel);
confMatCalc->Update();
confMatCalc->Compute();
std::cout << std::endl;
std::cout << "Confusion matrix: " << std::endl << confMatCalc->GetConfusionMatrix() << std::endl << std::endl;
......
......@@ -242,7 +242,7 @@ int otbReduceSpectralResponseSVMClassifier(int argc, char * argv[])
ConfusionMatrixCalculatorType::Pointer confMatCalc = ConfusionMatrixCalculatorType::New();
confMatCalc->SetReferenceLabels(groundTruthClassList);
confMatCalc->SetProducedLabels(classifierListLabel);
confMatCalc->Update();
confMatCalc->Compute();
std::cout << std::endl;
std::cout << "Confusion matrix: " << std::endl << confMatCalc->GetConfusionMatrix() << std::endl << std::endl;
......
......@@ -189,7 +189,7 @@ int main(int argc, char* argv[])
confMatCalc->SetReferenceLabels(validationLabels);
confMatCalc->SetProducedLabels(classifierListLabel);
confMatCalc->Update();
confMatCalc->Compute();
std::cout<<std::endl;
std::cout<<"Confusion matrix: "<<std::endl<< confMatCalc->GetConfusionMatrix()<<std::endl<<std::endl;
......
Markdown is supported
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