-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
46 lines (36 loc) · 1.11 KB
/
mainwindow.h
File metadata and controls
46 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPushButton>
#include <QFileDialog>
#include <pcl/PolygonMesh.h>
#include <boost/filesystem.hpp>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
namespace fs = boost::filesystem;
typedef pcl::PointCloud<pcl::PointXYZ> PointCloud;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void handleMeshButton();
void handleRegisterButton();
void handleRegisterValueResetButton();
private:
// Fields
Ui::MainWindow *ui;
double default_max_correspondence_distance = 15;
unsigned int default_max_iterations = 100;
double default_transformation_epsilon = 0.0000001;
// Methods
void save_mesh(const pcl::PolygonMesh polygon_mesh, const std::string file_name);
void save_point_cloud(const pcl::PointCloud<pcl::PointXYZ>::Ptr point_cloud, const std::string file_name);
void get_all_pcd_files(const fs::path& folder_path, std::vector<fs::path>& file_paths);
};
#endif // MAINWINDOW_H