| 1 |
//########################################################################## |
| 2 |
//# # |
| 3 |
//# CLOUDCOMPARE PLUGIN: qHoughNormals # |
| 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: Daniel Girardeau-Montaut # |
| 15 |
//# # |
| 16 |
//########################################################################## |
| 17 |
|
| 18 |
#ifndef QHOUGH_NORMALS_HEADER |
| 19 |
#define QHOUGH_NORMALS_HEADER |
| 20 |
|
| 21 |
#include <QDialog> |
| 22 |
|
| 23 |
namespace Ui { |
| 24 |
class HoughNormalsDialog; |
| 25 |
} |
| 26 |
|
| 27 |
class qHoughNormalsDialog : public QDialog |
| 28 |
{ |
| 29 |
public: |
| 30 |
|
| 31 |
//! Default constructor |
| 32 |
explicit qHoughNormalsDialog( QWidget* parent = nullptr ); |
| 33 |
|
| 34 |
~qHoughNormalsDialog(); |
| 35 |
|
| 36 |
//Settings |
| 37 |
struct Parameters |
| 38 |
{ |
| 39 |
int K = 100; |
| 40 |
int T = 1000; |
| 41 |
int n_phi = 15; |
| 42 |
int n_rot = 5; |
| 43 |
bool use_density = false; |
| 44 |
float tol_angle_rad = 0.79f; |
| 45 |
int k_density = 5; |
| 46 |
}; |
| 47 |
|
| 48 |
void setParameters( const Parameters& params ); |
| 49 |
void getParameters( Parameters& params ); |
| 50 |
|
| 51 |
private: |
| 52 |
Ui::HoughNormalsDialog* m_ui; |
| 53 |
}; |
| 54 |
|
| 55 |
#endif //QHOUGH_NORMALS_HEADER |