2022-01-14 14:26:03 +08:00
|
|
|
|
#pragma once
|
2022-08-03 10:59:27 +08:00
|
|
|
|
#pragma pack(1)//结构体按照1字节对齐存储
|
2022-01-14 14:26:03 +08:00
|
|
|
|
#include <qthread.h>
|
|
|
|
|
//#include <QFileDialog>
|
2022-02-15 13:26:24 +08:00
|
|
|
|
#include <QFile>
|
|
|
|
|
#include <QDataStream>
|
2022-01-14 14:26:03 +08:00
|
|
|
|
#include <QFileInfo>
|
|
|
|
|
#include <QDateTime>
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
|
|
#include "ZZ_Types.h"
|
|
|
|
|
#include "ZZ_Math.h"
|
|
|
|
|
//#include "Dense"
|
|
|
|
|
#include "Eigen/Dense"
|
|
|
|
|
#include "unsupported/Eigen/Splines"
|
|
|
|
|
|
|
|
|
|
using namespace ZZ_MISCDEF::IRIS::FS;
|
|
|
|
|
|
|
|
|
|
class CalibrationAlgorithm :public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CalibrationAlgorithm();
|
|
|
|
|
~CalibrationAlgorithm();
|
|
|
|
|
|
2022-02-15 13:26:24 +08:00
|
|
|
|
void readAndResample_StandardLightFile(QString filePath, int integratingSphereDetectorValue, DeviceAttribute deviceAttribute, DeviceInfo deviceInfo);//
|
2022-01-14 14:26:03 +08:00
|
|
|
|
|
|
|
|
|
void produceCalfile(QString calFilePath, DeviceAttribute deviceAttribute, DataFrame integratingSphereData, DataFrame darkData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
private:
|
|
|
|
|
double m_dStandardLightDataBase;//<2F><><EFBFBD><D7BC><EFBFBD>ļ<EFBFBD><C4BC>Ļ<EFBFBD><EFBFBD><D7BC><EFBFBD><EFBFBD>
|
|
|
|
|
double * m_dStandardLightWavelength;
|
|
|
|
|
double * m_dStandardLightData;
|
|
|
|
|
|
|
|
|
|
double * m_dStandardLightWavelengthResampled;
|
|
|
|
|
double * m_dStandardLightDataResampled;
|
|
|
|
|
|
|
|
|
|
double * m_gain;
|
|
|
|
|
double * m_offset;
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
|
|
};
|