ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CorrespondenceMatching.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 #include "BasePclModule.h"
11 
12 // Qt
13 #include <QString>
14 
16 
19 public:
21  virtual ~CorrespondenceMatching();
22 
23  // inherited from BasePclModule
24  virtual int compute();
25 
26 protected:
27  // inherited from BasePclModule
28  virtual int checkSelected();
29  virtual int openInputDialog();
30  virtual void getParametersFromDialog();
31  virtual int checkParameters();
32  virtual QString getErrorMessage(int errorCode);
33 
34  void applyTransformation(ccHObject* entity, const ccGLMatrixd& mat);
35 
38 
39  float m_leafSize;
41  bool m_gcMode;
44 
49 
50  // GC
53 
54  // Hough
55  float m_lrfRadius;
58 
59  // ICP
62 
63  // Global Hypotheses Verification
64  float clusterReg = 5.0f;
65  float inlierThreshold = 0.005f;
66  float occlusionThreshold = 0.01f;
67  float radiusClutter = 0.03f;
68  float regularizer = 3.0f;
69  float radiusNormals = 0.05f;
70  bool detectClutter = true;
71 
72  std::vector<float> m_scales;
73  std::vector<ccPointCloud*> m_modelClouds;
74 };
Base abstract class for each implemented PCL filter.
Definition: BasePclModule.h:53
CANUPO plugin's training dialog.
Correspondence Matching.
virtual int compute()
Performs the actual filter job.
std::vector< ccPointCloud * > m_modelClouds
virtual QString getErrorMessage(int errorCode)
Returns the error message corresponding to a given error code.
void applyTransformation(ccHObject *entity, const ccGLMatrixd &mat)
virtual void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
CorrespondenceMatchingDialog * m_dialog
virtual int checkSelected()
Checks if current selection is compliant with the filter.
std::vector< float > m_scales
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
A 3D cloud and its associated features (color, normals, scalar fields, etc.)