add core files
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <QBuffer>
|
||||
#include <QTextStream>
|
||||
#include <QStyleFactory>
|
||||
#include <QtTest/QtTest>
|
||||
#include "DisplayPic.h"
|
||||
#include "ui_Reconstruction.h"
|
||||
#include <pcl/point_types.h>
|
||||
@@ -15,33 +16,55 @@
|
||||
#include <pcl/io/vtk_lib_io.h>
|
||||
#include <vtkRenderWindow.h>
|
||||
#include <QProgressDialog>
|
||||
#include "Camera.h"
|
||||
#include "Projector.h"
|
||||
#include "fstools.h"
|
||||
#include "TreeModel.h"
|
||||
#include "Calibrator.h"
|
||||
#include "CalibrationData.h"
|
||||
#include "Device.h"
|
||||
#include "CoreAlgorithm.h"
|
||||
#include "MyThread.h"
|
||||
#include "Help.h"
|
||||
#include <iostream>
|
||||
using namespace pcl;
|
||||
using namespace std;
|
||||
|
||||
enum Role { ImageFilenameRole = Qt::UserRole, GrayImageRole, ColorImageRole };
|
||||
|
||||
class Reconstruction : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Reconstruction(QWidget *parent = Q_NULLPTR);
|
||||
void timerEvent(QTimerEvent* event);
|
||||
void closeEvent(QCloseEvent*);
|
||||
void setDirModel(const QString& dirname);
|
||||
Mat getImage(unsigned level, unsigned n, Role role);
|
||||
|
||||
private:
|
||||
Ui::ReconstructionClass ui;
|
||||
Device* device;
|
||||
QString calPath; // 系统标定:标定图像的存储路径
|
||||
QString picPath = "Result/result.png"; // 三维重建:拍摄照片的存储路径
|
||||
PointCloud<PointXYZRGB> cloud;
|
||||
bool confirmPic = false; // 三维重建:确定是否用所拍照片进行重建
|
||||
QColor color = Qt::black; // 点云渲染:颜色
|
||||
|
||||
int liveViewTimer;
|
||||
TreeModel* dirModel;
|
||||
CalibrationData* calibData;
|
||||
Calibrator* calibrator;
|
||||
int imgCount;
|
||||
|
||||
// 多线程
|
||||
MyThread* t;
|
||||
bool loadingStatus = false; // 点云渲染
|
||||
void setStyle();
|
||||
void setPicStyle();
|
||||
void setButtonStyle();
|
||||
void updateQVTK(PointCloud<PointXYZRGB> cloud);
|
||||
void updateQVTK(PointCloud<PointXYZRGB> cloud, QColor color);
|
||||
|
||||
private slots:
|
||||
void on_pushButton_clicked();
|
||||
@@ -64,4 +87,4 @@ private slots:
|
||||
void on_pushButton_18_clicked();
|
||||
void setPicAction(QString action);
|
||||
void setCloud();
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user