Compute features at various scales in a smarter way (finished)

This commit is contained in:
Daniel Girardeau-Montaut
2018-11-24 18:18:28 +01:00
parent a05dfa3e96
commit a0a1d545ff
2 changed files with 22 additions and 11 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ bool Classifier::classify(const Feature::Set& features, ccPointCloud* cloud, QSt
//look for the classification field
CCLib::ScalarField* classificationSF = nullptr;
int classifSFIdx = cloud->getScalarFieldIndexByName(LAS_FIELD_NAMES[LAS_CLASSIFICATION]); //LAS_FIELD_NAMES[LAS_CLASSIFICATION] = "Classification"
if (!classifSFIdx)
if (classifSFIdx < 0)
{
//create it if necessary
ccScalarField* _classificationSF = new ccScalarField(LAS_FIELD_NAMES[LAS_CLASSIFICATION]);