mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-29 08:34:48 +08:00
0.9
This commit is contained in:
+1
-1
@@ -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 )
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -116,6 +116,13 @@ Classify3DMASCDialog::Classify3DMASCDialog(ccMainAppInterface* app, bool trainMo
|
||||
}
|
||||
|
||||
onCloudChanged(0);
|
||||
|
||||
readSettings();
|
||||
}
|
||||
|
||||
Classify3DMASCDialog::~Classify3DMASCDialog()
|
||||
{
|
||||
writeSettings();
|
||||
}
|
||||
|
||||
void Classify3DMASCDialog::readSettings()
|
||||
|
||||
@@ -34,6 +34,7 @@ public:
|
||||
|
||||
//! Default constructor
|
||||
Classify3DMASCDialog(ccMainAppInterface* app, bool trainMode = false);
|
||||
~Classify3DMASCDialog();
|
||||
|
||||
//! read settings
|
||||
void readSettings();
|
||||
|
||||
Reference in New Issue
Block a user