Try to fill in the qClassify3DMASCDialog if names are available in the parameter file and clouds exist in the database tree with the same name (case insensitive)

Code cleaning
This commit is contained in:
Paul Leroy
2024-02-16 17:14:54 +01:00
parent 992f5d4c8c
commit 7087b899f4
8 changed files with 100 additions and 70 deletions
+2 -1
View File
@@ -165,7 +165,8 @@ struct Command3DMASCClassif : public ccCommandLineInterface::Command
QList<QString> cloudLabels;
QString corePointsLabel;
bool filenamesSpecified = false;
if (!masc::Tools::LoadClassifierCloudLabels(classifierFilename, cloudLabels, corePointsLabel, filenamesSpecified))
QMap<QString, QString> labelsAndNames;
if (!masc::Tools::LoadClassifierCloudLabels(classifierFilename, cloudLabels, corePointsLabel, filenamesSpecified, labelsAndNames))
{
return cmd.error("Failed to read classifier file");
}