mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-30 00:50:49 +08:00
bug correction in progress: crash when dupplicated features are configured in the parameter file
This commit is contained in:
+2
-1
@@ -392,7 +392,6 @@ void q3DMASCPlugin::doTrainAction()
|
||||
trainDlg.testDataRatioSpinBox->setEnabled(testCloud == nullptr);
|
||||
trainDlg.setInputFilePath(inputFilename);
|
||||
static bool s_keepAttributes = trainDlg.checkBox_useExistingScalarFields->isChecked();
|
||||
bool useExistingScalarFields = trainDlg.checkBox_useExistingScalarFields->isChecked();
|
||||
|
||||
//display the loaded features and let the user select the ones to use
|
||||
trainDlg.setResultText("Select features and press 'Run'");
|
||||
@@ -477,6 +476,7 @@ void q3DMASCPlugin::doTrainAction()
|
||||
|
||||
//we will train + evaluate the classifier, then display the results
|
||||
//then let the user change parameters and (potentially) start again
|
||||
bool useExistingScalarFields = trainDlg.checkBox_useExistingScalarFields->isChecked();
|
||||
for (int iteration = 0; ; ++iteration)
|
||||
{
|
||||
//look for selected features
|
||||
@@ -769,6 +769,7 @@ void q3DMASCPlugin::doTrainAction()
|
||||
}
|
||||
|
||||
//we are going to restart the classification process
|
||||
useExistingScalarFields = trainDlg.checkBox_useExistingScalarFields->isChecked();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user