This commit is contained in:
Paul Leroy
2023-06-01 09:54:11 +02:00
parent 99be926f3f
commit a4d014c2d5
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ if (INSTALL_Q3DMASC_PLUGIN)
project( Q3DMASC_PLUGIN )
AddPlugin( NAME ${PROJECT_NAME} )
set(Q3DMASC_PLUGIN_VERSION "0.8+")
set(Q3DMASC_PLUGIN_VERSION "0.9")
include( CMakePolicies NO_POLICY_SCOPE )
+2 -2
View File
@@ -328,7 +328,7 @@ bool Classifier::evaluate(const Feature::Source::Set& featureSources,
if (outIdx >= 0)
testCloud->deleteScalarField(outIdx);
else
ccLog::Warning("add " + outputSFName + " to the TEST cloud");
ccLog::Print("add " + outputSFName + " to the TEST cloud");
outIdx = testCloud->addScalarField(qPrintable(outputSFName));
outSF = static_cast<ccScalarField*>(testCloud->getScalarField(outIdx));
}
@@ -339,7 +339,7 @@ bool Classifier::evaluate(const Feature::Source::Set& featureSources,
if (cvConfidenceIdx >= 0) // if the scalar field exists, delete it
testCloud->deleteScalarField(cvConfidenceIdx);
else
ccLog::Warning("add Classification_confidence to the TEST cloud");
ccLog::Print("add Classification_confidence to the TEST cloud");
cvConfidenceIdx = testCloud->addScalarField("Classification_confidence");
cvConfidenceSF = static_cast<ccScalarField*>(testCloud->getScalarField(cvConfidenceIdx));
}
+7
View File
@@ -116,6 +116,13 @@ Classify3DMASCDialog::Classify3DMASCDialog(ccMainAppInterface* app, bool trainMo
}
onCloudChanged(0);
readSettings();
}
Classify3DMASCDialog::~Classify3DMASCDialog()
{
writeSettings();
}
void Classify3DMASCDialog::readSettings()
+1
View File
@@ -34,6 +34,7 @@ public:
//! Default constructor
Classify3DMASCDialog(ccMainAppInterface* app, bool trainMode = false);
~Classify3DMASCDialog();
//! read settings
void readSettings();