![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
3DMASC plugin More...
#include <q3DMASC.h>


Public Member Functions | |
| q3DMASCPlugin (QObject *parent=nullptr) | |
| Default constructor. More... | |
| void | onNewSelection (const ccHObject::Container &selectedEntities) override |
| QList< QAction * > | getActions () override |
| Get a list of actions for this plugin. More... | |
| void | registerCommands (ccCommandLineInterface *cmd) override |
| Optional: registers commands (for the command line mode) More... | |
Public Member Functions inherited from ccStdPluginInterface | |
| ccStdPluginInterface (const QString &resourcePath=QString()) | |
| Default constructor. More... | |
| virtual | ~ccStdPluginInterface () override=default |
| Destructor. More... | |
| virtual CC_PLUGIN_TYPE | getType () const override |
| Returns plugin type (standard or OpenGL filter) More... | |
| virtual void | setMainAppInterface (ecvMainAppInterface *app) |
| Sets application entry point. More... | |
| virtual ecvMainAppInterface * | getMainAppInterface () |
| A callback pointer to the main app interface for use by plugins. More... | |
| virtual void | dispToConsole (QString message, ecvMainAppInterface::ConsoleMessageLevel level=ecvMainAppInterface::STD_CONSOLE_MESSAGE) |
| Shortcut to ecvMainAppInterface::dispToConsole. More... | |
Public Member Functions inherited from ccDefaultPluginInterface | |
| virtual | ~ccDefaultPluginInterface () |
| virtual bool | isCore () const override |
| Is this plugin a core plugin? More... | |
| virtual QString | getName () const override |
| Returns (short) name (for menu entry, etc.) More... | |
| virtual QString | getDescription () const override |
| Returns long name/description (for tooltip, etc.) More... | |
| virtual QIcon | getIcon () const override |
| Returns icon. More... | |
| virtual ReferenceList | getReferences () const override |
| virtual ContactList | getAuthors () const override |
| virtual ContactList | getMaintainers () const override |
Public Member Functions inherited from ccPluginInterface | |
| virtual | ~ccPluginInterface ()=default |
| Virtual destructor. More... | |
| virtual bool | start () |
| Starts the plugin. More... | |
| virtual void | stop () |
| Stops the plugin. More... | |
| virtual ccExternalFactory * | getCustomObjectsFactory () const |
| Returns the plugin's custom object factory (if any) More... | |
Protected Slots | |
| void | doClassifyAction () |
| void | saveTrainParameters (const masc::TrainParameters ¶ms) |
| void | loadTrainParameters (masc::TrainParameters ¶ms) |
| void | doTrainAction () |
Protected Attributes | |
| QAction * | m_classifyAction |
| Calssify action. More... | |
| QAction * | m_trainAction |
| Train action. More... | |
| ccHObject::Container | m_selectedEntities |
| Currently selected entities. More... | |
Protected Attributes inherited from ccStdPluginInterface | |
| ecvMainAppInterface * | m_app |
| Main application interface. More... | |
Additional Inherited Members | |
Public Types inherited from ccPluginInterface | |
| typedef QList< Contact > | ContactList |
| using | ReferenceList = QList< Reference > |
Protected Member Functions inherited from ccDefaultPluginInterface | |
| ccDefaultPluginInterface (const QString &resourcePath=QString()) | |
3DMASC plugin
3D Multi-cloud, multi-Attribute, multi-Scale, multi-Class classification
|
explicit |
Default constructor.
Definition at line 31 of file q3DMASC.cpp.
|
protectedslot |
Definition at line 83 of file q3DMASC.cpp.
References masc::Classifier::classify(), corePoints, ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, error(), masc::Feature::ExtractSources(), Classify3DMASCDialog::getClouds(), ecvMainAppInterface::getMainWindow(), masc::Classifier::isValid(), masc::Tools::LoadClassifier(), masc::Tools::LoadClassifierCloudLabels(), ccStdPluginInterface::m_app, masc::Tools::PrepareFeatures(), SFCollector::releaseSFs(), Classify3DMASCDialog::setCloudRoles(), and ShowClassifyDisclaimer().
Referenced by getActions().
|
protectedslot |
Definition at line 241 of file q3DMASC.cpp.
References ccHObject::addChild(), Train3DMASCDialog::addFeature(), Train3DMASCDialog::addScale(), ecvMainAppInterface::addToDB(), masc::CorePoints::cloud, Train3DMASCDialog::connectScaleSelectionToFeatureSelection(), corePoints, ecvMainAppInterface::dispToConsole(), QtCompat::endl(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, error(), masc::Classifier::evaluate(), masc::Feature::ExtractSources(), filename, ccHObject::getChildrenNumber(), masc::Tools::GetClassificationSF(), Classify3DMASCDialog::getClouds(), ecvMainAppInterface::getMainWindow(), Train3DMASCDialog::getRun(), Train3DMASCDialog::getSaveTrace(), Train3DMASCDialog::getTracePath(), masc::Classifier::getVarImportance(), masc::Classifier::AccuracyMetrics::goodGuess, Train3DMASCDialog::isFeatureSelected(), masc::Tools::LoadClassifierCloudLabels(), masc::Tools::LoadTrainingFile(), loadTrainParameters(), ccStdPluginInterface::m_app, masc::CorePoints::NONE, masc::CorePoints::origin, masc::Tools::PrepareFeatures(), masc::CorePoints::RANDOM, masc::Tools::RandomSubset(), masc::Classifier::AccuracyMetrics::ratio, ecvMainAppInterface::redrawAll(), SFCollector::releaseSFs(), masc::CorePoints::role, s_params, masc::Classifier::AccuracyMetrics::sampleCount, masc::Tools::SaveClassifier(), saveTrainParameters(), Train3DMASCDialog::setClassifierSaved(), Classify3DMASCDialog::setCloudRoles(), ccObject::setEnabled(), Train3DMASCDialog::setFeatureImportance(), Train3DMASCDialog::setFirstRunDone(), Train3DMASCDialog::setInputFilePath(), Train3DMASCDialog::setResultText(), Train3DMASCDialog::shouldSaveClassifier(), ShowTrainDisclaimer(), Train3DMASCDialog::sortByFeatureImportance(), masc::CorePoints::SPATIAL, ecvMainAppInterface::STD_CONSOLE_MESSAGE, masc::Classifier::train(), CVLog::Warning(), and ecvMainAppInterface::WRN_CONSOLE_MESSAGE.
Referenced by getActions().
|
overridevirtual |
Get a list of actions for this plugin.
Implements ccStdPluginInterface.
Definition at line 57 of file q3DMASC.cpp.
References doClassifyAction(), doTrainAction(), m_classifyAction, and m_trainAction.
|
protectedslot |
|
overridevirtual |
This method is called by the main application whenever the entity selection changes Does nothing by default. Should be re-implemented by the plugin if necessary.
| selectedEntities | currently selected entities |
Reimplemented from ccStdPluginInterface.
Definition at line 37 of file q3DMASC.cpp.
References ecvMainAppInterface::dbRootObject(), ccHObject::getChildrenNumber(), ccStdPluginInterface::m_app, m_classifyAction, m_selectedEntities, and m_trainAction.
|
overridevirtual |
Optional: registers commands (for the command line mode)
Does nothing by default.
Reimplemented from ccPluginInterface.
Definition at line 833 of file q3DMASC.cpp.
References ccCommandLineInterface::registerCommand().
|
protectedslot |
|
protected |
Calssify action.
Definition at line 42 of file q3DMASC.h.
Referenced by getActions(), and onNewSelection().
|
protected |
Currently selected entities.
Definition at line 47 of file q3DMASC.h.
Referenced by onNewSelection().
|
protected |
Train action.
Definition at line 44 of file q3DMASC.h.
Referenced by getActions(), and onNewSelection().