Debian Codegraph @

plugins/core/Standard/qCanupo/include/qCanupoProcess.h

raw
1 //##########################################################################
2 //# #
3 //# CLOUDCOMPARE PLUGIN: qCANUPO #
4 //# #
5 //# This program is free software; you can redistribute it and/or modify #
6 //# it under the terms of the GNU General Public License as published by #
7 //# the Free Software Foundation; version 2 or later of the License. #
8 //# #
9 //# This program is distributed in the hope that it will be useful, #
10 //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 //# GNU General Public License for more details. #
13 //# #
14 //# COPYRIGHT: UEB (UNIVERSITE EUROPEENNE DE BRETAGNE) / CNRS #
15 //# #
16 //##########################################################################
17
18 #ifndef Q_CANUPO_PROCESS_HEADER
19 #define Q_CANUPO_PROCESS_HEADER
20
21 //Local
22 #include "ccPointDescriptor.h"
23
24 //CCCoreLib
25 #include <GenericIndexedCloudPersist.h>
26
27 //Qt
28 #include <QString>
29
30 class ccMainAppInterface;
31 class ccPointCloud;
32 class QWidget;
33
34 //! CANUPO process (classify)
35 class qCanupoProcess
36 {
37 public:
38
39 //! Classify parameters
40 struct ClassifyParams
41 {
42 double samplingDist = 0.0;
43 int maxThreadCount = 0;
44 double confidenceThreshold = 0.0;
45 bool useActiveSFForConfidence = true;
46 bool generateAdditionalSF = false;
47 bool generateRoughnessSF = false;
48 };
49
50 //! Classify a point cloud
51 static bool Classify( QString classifierFilename,
52 const ClassifyParams& params,
53 ccPointCloud* cloud,
54 CCCoreLib::GenericIndexedCloudPersist* corePoints,
55 CorePointDescSet& corePointsDescriptors,
56 ccPointCloud* realCorePoints = nullptr,
57 ccMainAppInterface* app = nullptr,
58 QWidget* parentWidget = nullptr,
59 bool silent = false);
60 };
61
62 #endif //Q_CANUPO_PROCESS_HEADER