Various updates (command line call to classification, etc.)

This commit is contained in:
Daniel Girardeau-Montaut
2019-01-19 00:49:29 +01:00
parent 3150548792
commit ecbdb4973e
19 changed files with 372 additions and 141 deletions
+7 -1
View File
@@ -25,7 +25,7 @@
using namespace masc;
CCLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSFName)
CCLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSFName, SFCollector* generatedScalarFields/*=nullptr*/)
{
if (!cloud || !resultSFName)
{
@@ -50,6 +50,12 @@ CCLib::ScalarField* Feature::PrepareSF(ccPointCloud* cloud, const char* resultSF
return nullptr;
}
cloud->addScalarField(newSF);
if (generatedScalarFields)
{
//track the generated scalar-field
generatedScalarFields->push(cloud, newSF);
}
resultSF = newSF;