ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qCanupoProcess.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Local
11 #include "ccPointDescriptor.h"
12 
13 // cloudViewer
15 
16 // Qt
17 #include <QString>
18 
20 class ccPointCloud;
21 class QWidget;
22 
25 public:
27  struct ClassifyParams {
28  double samplingDist = 0.0;
29  int maxThreadCount = 0;
30  double confidenceThreshold = 0.0;
32  bool generateAdditionalSF = false;
33  bool generateRoughnessSF = false;
34  };
35 
37  static bool Classify(QString classifierFilename,
38  const ClassifyParams& params,
39  ccPointCloud* cloud,
41  CorePointDescSet& corePointsDescriptors,
42  ccPointCloud* realCorePoints = nullptr,
43  ecvMainAppInterface* app = nullptr,
44  QWidget* parentWidget = nullptr,
45  bool silent = false);
46 };
cmdLineReadable * params[]
Set of (core) point descriptors.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
A generic 3D point cloud with index-based and presistent access to points.
Main application interface (for plugins)
CANUPO process (classify)
static bool Classify(QString classifierFilename, const ClassifyParams &params, ccPointCloud *cloud, cloudViewer::GenericIndexedCloudPersist *corePoints, CorePointDescSet &corePointsDescriptors, ccPointCloud *realCorePoints=nullptr, ecvMainAppInterface *app=nullptr, QWidget *parentWidget=nullptr, bool silent=false)
Classify a point cloud.
cloudViewer::GenericIndexedCloud * corePoints