Bug fix + parallel computation of features

This commit is contained in:
Daniel Girardeau-Montaut
2018-12-01 14:39:11 +01:00
parent 80a6be6b2a
commit 1d02e4bde7
4 changed files with 57 additions and 14 deletions
+3 -3
View File
@@ -137,7 +137,6 @@ bool Classifier::classify(const Feature::Set& features, ccPointCloud* cloud, QSt
{
classificationSF = cloud->getScalarField(classifSFIdx);
}
cloud->setCurrentDisplayedScalarField(classifSFIdx);
assert(classificationSF);
classificationSF->fill(0); //0 = no classification?
@@ -549,12 +548,13 @@ bool Classifier::toFile(QString filename, QWidget* parentWidget/*=nullptr*/) con
pDlg.show();
QCoreApplication::processEvents();
m_rtrees->save(filename.toStdString());
cv::String cvFilename = filename.toStdString();
m_rtrees->save(cvFilename);
pDlg.close();
QCoreApplication::processEvents();
ccLog::Print("Classifier file saved to: " + filename);
ccLog::Print("Classifier file saved to: " + QString::fromStdString(cvFilename));
return true;
}