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 };
ccHObject::filterChildren
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
QtCompat.h
ecvMainAppInterface::dispToConsole
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
CorrespondenceMatchingDialog.h
CorrespondenceMatchingDialog::getHoughBinSize
float getHoughBinSize() const
Definition: CorrespondenceMatchingDialog.cpp:150
ccObject::isA
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
CorrespondenceMatchingDialog::getScales
bool getScales(std::vector< float > &scales) const
Returns input scales.
Definition: CorrespondenceMatchingDialog.cpp:166
CorrespondenceMatchingDialog::isGCActivated
bool isGCActivated() const
Definition: CorrespondenceMatchingDialog.cpp:134
ecvMainAppInterface::dbRootObject
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
ecvMainAppInterface.h
CorrespondenceMatchingDialog::getModelCloudByIndex
ccPointCloud * getModelCloudByIndex(int index)
Definition: CorrespondenceMatchingDialog.cpp:228
CorrespondenceMatchingDialog::getGcConsensusSetResolution
float getGcConsensusSetResolution() const
Definition: CorrespondenceMatchingDialog.cpp:138
CorrespondenceMatchingDialog::m_app
ecvMainAppInterface * m_app
Gives access to the application (data-base, UI, etc.)
Definition: CorrespondenceMatchingDialog.h:77
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
CorrespondenceMatchingDialog::saveParamsToPersistentSettings
void saveParamsToPersistentSettings()
Saves parameters to persistent settings.
Definition: CorrespondenceMatchingDialog.cpp:286
CorrespondenceMatchingDialog::getHoughThreshold
float getHoughThreshold() const
Definition: CorrespondenceMatchingDialog.cpp:154
slots
#define slots
Definition: PythonPlugin.cpp:25
ecvMainAppInterface
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
CorrespondenceMatchingDialog
CANUPO plugin's training dialog.
Definition: CorrespondenceMatchingDialog.h:20
CorrespondenceMatchingDialog::getVerificationFlag
bool getVerificationFlag() const
Definition: CorrespondenceMatchingDialog.cpp:114
CorrespondenceMatchingDialog::validParameters
bool validParameters() const
Definition: CorrespondenceMatchingDialog.cpp:89
e
const double * e
Definition: essential_matrix_poly.h:10
ecvMainAppInterface::ERR_CONSOLE_MESSAGE
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
Ui
Definition: sfEditDlg.h:16
ccHObject::find
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
CorrespondenceMatchingDialog::getEntityName
QString getEntityName(ccHObject *obj)
Definition: CorrespondenceMatchingDialog.cpp:303
CorrespondenceMatchingDialog::getNormalKSearch
float getNormalKSearch() const
Returns the normal KSearch.
Definition: CorrespondenceMatchingDialog.cpp:130
cloudViewer::utility::floor
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
QtCompat::SkipEmptyParts
constexpr Qt::SplitBehavior SkipEmptyParts
Definition: QtCompat.h:302
CorrespondenceMatchingDialog::refreshCloudComboBox
void refreshCloudComboBox()
Definition: CorrespondenceMatchingDialog.cpp:50
CorrespondenceMatchingDialog::getModel1Cloud
ccPointCloud * getModel1Cloud()
Get model #1 point cloud.
Definition: CorrespondenceMatchingDialog.cpp:210
CorrespondenceMatchingDialog::getHoughLRFRadius
float getHoughLRFRadius() const
Definition: CorrespondenceMatchingDialog.cpp:146
CorrespondenceMatchingDialog::getModel2Cloud
ccPointCloud * getModel2Cloud()
Get model #2 point cloud.
Definition: CorrespondenceMatchingDialog.cpp:219
CorrespondenceMatchingDialog::getShotDescriptorRadius
float getShotDescriptorRadius() const
Returns the Shot Descriptor Radius.
Definition: CorrespondenceMatchingDialog.cpp:126
CorrespondenceMatchingDialog::onCloudChanged
void onCloudChanged(int)
Definition: CorrespondenceMatchingDialog.cpp:206
ccObject::getUniqueID
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
CorrespondenceMatchingDialog::getMaxThreadCount
int getMaxThreadCount() const
Returns the max number of threads to use.
Definition: CorrespondenceMatchingDialog.cpp:110
CorrespondenceMatchingDialog::getSceneSearchRadius
float getSceneSearchRadius() const
Returns the Scene Search Radius.
Definition: CorrespondenceMatchingDialog.cpp:122
CorrespondenceMatchingDialog::getModelSearchRadius
float getModelSearchRadius() const
Returns the Model Search Radius.
Definition: CorrespondenceMatchingDialog.cpp:118
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
CorrespondenceMatchingDialog::getVoxelGridLeafSize
float getVoxelGridLeafSize() const
Definition: CorrespondenceMatchingDialog.cpp:158
CorrespondenceMatchingDialog::CorrespondenceMatchingDialog
CorrespondenceMatchingDialog(ecvMainAppInterface *app)
Default constructor.
Definition: CorrespondenceMatchingDialog.cpp:28
CorrespondenceMatchingDialog::getCloudFromCombo
ccPointCloud * getCloudFromCombo(QComboBox *comboBox, ccHObject *dbRoot)
Definition: CorrespondenceMatchingDialog.cpp:316
CorrespondenceMatchingDialog::getEvaluationCloud
ccPointCloud * getEvaluationCloud()
Get evaluation point cloud.
Definition: CorrespondenceMatchingDialog.cpp:242
CorrespondenceMatchingDialog::getGcMinClusterSize
float getGcMinClusterSize() const
Definition: CorrespondenceMatchingDialog.cpp:142
ecvPointCloud.h
CorrespondenceMatchingDialog::loadParamsFromPersistentSettings
void loadParamsFromPersistentSettings()
Loads parameters from persistent settings.
Definition: CorrespondenceMatchingDialog.cpp:247
name
std::string name
Definition: FileIOFactory.cpp:129