 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
25 cmd.
print(
"[CANUPO]");
27 return cmd.
error(QString(
"Missing parameter: classifier filename "
28 "(.prm) after \"-%1\"")
39 QString classifierFilename;
43 QString argument = cmd.
arguments().front();
50 return cmd.
error(QString(
"Missing parameter: confidence "
51 "threshold after '%1'")
57 cmd.
arguments().takeFirst().toDouble(&ok);
59 return cmd.
error(QString(
"Invalid parameter: confidence "
60 "threshold after '%1'")
64 cmd.
print(QString(
"Confidence threshold set to %1")
68 classifierFilename = argument;
74 if (classifierFilename.isEmpty()) {
75 return cmd.
error(
"Classifier name not set");
78 if (cmd.
clouds().empty()) {
79 return cmd.
error(
"Need at least At least one cloud must be loaded");
90 if (currentSFIndex >= 0) {
91 desc.pc->setCurrentDisplayedScalarField(currentSFIndex);
99 realCorePoints,
nullptr,
nullptr,
102 QString errorStr = cmd.
exportEntity(desc,
"CLASSIFIED");
103 if (!errorStr.isEmpty()) {
104 return cmd.
error(errorStr);
double confidenceThreshold
Definition: qCanupoProcess.h:30
virtual std::vector< CLCloudDesc > & clouds()
Currently opened point clouds and their filename.
Definition: ecvCommandLineInterface.cpp:133
virtual bool error(const QString &message) const =0
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
static bool Classify(QString classifierFilename, const ClassifyParams ¶ms, ccPointCloud *cloud, cloudViewer::GenericIndexedCloudPersist *corePoints, CorePointDescSet &corePointsDescriptors, ccPointCloud *realCorePoints=nullptr, ecvMainAppInterface *app=nullptr, QWidget *parentWidget=nullptr, bool silent=false)
Classify a point cloud.
Definition: qCanupoProcess.cpp:218
Definition: qCanupoCommands.h:19
bool silentMode() const
Returns the silent mode.
Definition: ecvCommandLineInterface.cpp:149
Set of (core) point descriptors.
Definition: ccPointDescriptor.h:102
bool generateAdditionalSF
Definition: qCanupoProcess.h:32
Classify parameters.
Definition: qCanupoProcess.h:27
double samplingDist
Definition: qCanupoProcess.h:28
Generic command interface.
Definition: ecvCommandLineInterface.h:130
virtual QStringList & arguments()=0
Returns the list of arguments.
virtual void print(const QString &message) const =0
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
Command line interface.
Definition: ecvCommandLineInterface.h:112
bool autoSaveMode() const
Definition: ecvCommandLineInterface.cpp:155
CommandCanupoClassif()
Definition: qCanupoCommands.h:20
static const char COMMAND_CANUPO_CONFIDENCE[]
Definition: qCanupoCommands.h:17
Loaded cloud description.
Definition: ecvCommandLineInterface.h:68
int getCurrentDisplayedScalarFieldIndex() const
Returns the currently displayed scalar field index (or -1 if none)
Definition: ecvPointCloud.cpp:3223
Command(const QString &name, const QString &keyword)
Default constructor.
Definition: ecvCommandLineInterface.cpp:225
static const char COMMAND_CANUPO_CALSSIFY[]
Definition: qCanupoCommands.h:16
virtual bool process(ccCommandLineInterface &cmd) override
Main process.
Definition: qCanupoCommands.h:24
bool useActiveSFForConfidence
Definition: qCanupoProcess.h:31
static bool IsCommand(const QString &token, const char *command)
Test whether a command line token is a valid command keyword or not.
Definition: ecvCommandLineInterface.cpp:119
virtual QString exportEntity(CLEntityDesc &entityDesc, const QString &suffix=QString(), QString *outputFilename=nullptr, ccCommandLineInterface::ExportOptions options=ExportOption::NoOptions)=0
Exports a cloud or a mesh.
bool generateRoughnessSF
Definition: qCanupoProcess.h:33