ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CorrespondenceMatchingDialog.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 <ui_CorrespondenceMatchingDialog.h>
11 
12 // Qt
13 #include <QDialog>
14 
16 class ccPointCloud;
17 class ccHObject;
18 
20 class CorrespondenceMatchingDialog : public QDialog,
21  public Ui::CorrespondenceMatchingDialog {
22  Q_OBJECT
23 
24 public:
27 
32 
34 
37 
42 
44  bool getScales(std::vector<float>& scales) const;
46  int getMaxThreadCount() const;
47 
48  float getVoxelGridLeafSize() const;
49 
51  float getModelSearchRadius() const;
53  float getSceneSearchRadius() const;
55  float getShotDescriptorRadius() const;
57  float getNormalKSearch() const;
58 
59  bool getVerificationFlag() const;
60 
61  bool isGCActivated() const;
62 
63  float getGcConsensusSetResolution() const;
64  float getGcMinClusterSize() const;
65 
66  float getHoughLRFRadius() const;
67  float getHoughBinSize() const;
68  float getHoughThreshold() const;
69 
70  void refreshCloudComboBox();
71 
72 protected slots:
73  void onCloudChanged(int);
74 
75 protected:
78 
79  // Returns whether the current parameters are valid or not
80  bool validParameters() const;
81 
82  QString getEntityName(ccHObject* obj);
83 
84  ccPointCloud* getCloudFromCombo(QComboBox* comboBox, ccHObject* dbRoot);
85 };
#define slots
CANUPO plugin's training dialog.
void saveParamsToPersistentSettings()
Saves parameters to persistent settings.
void loadParamsFromPersistentSettings()
Loads parameters from persistent settings.
ccPointCloud * getModelCloudByIndex(int index)
ccPointCloud * getModel1Cloud()
Get model #1 point cloud.
float getModelSearchRadius() const
Returns the Model Search Radius.
float getShotDescriptorRadius() const
Returns the Shot Descriptor Radius.
float getNormalKSearch() const
Returns the normal KSearch.
ccPointCloud * getEvaluationCloud()
Get evaluation point cloud.
int getMaxThreadCount() const
Returns the max number of threads to use.
CorrespondenceMatchingDialog(ecvMainAppInterface *app)
Default constructor.
ecvMainAppInterface * m_app
Gives access to the application (data-base, UI, etc.)
bool getScales(std::vector< float > &scales) const
Returns input scales.
ccPointCloud * getCloudFromCombo(QComboBox *comboBox, ccHObject *dbRoot)
float getSceneSearchRadius() const
Returns the Scene Search Radius.
ccPointCloud * getModel2Cloud()
Get model #2 point cloud.
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Main application interface (for plugins)