Files
HPPA/HPPA/resononImager.h
tangchao0503 6469bff15d fix & add
1、在界面上实现选择相机类型的功能;
2、创建了一个光谱仪操作的纯虚基类(ImagerOperationBase)并实现了大部分的操作,具体类型的光谱仪应继承此类并实现纯虚函数;
3、添加了 resonon 的 nir 320 相机,修改 resonon 的 pica l 相机的实现:继承 ImagerOperationBase;
4、重构类 QMotorDoubleSlider,提高其通用性,所有马达相关的 slider 都使用此类;
5、适配 resonon nir 320 显微镜使用的 2 轴线性平台,有些特殊的马达参数设置(setMotorParamMicroscope 函数)绑定了 nir 的相机类型参数;
6、修改:将线性平台的量程信息保存在cfg配置文件中,并修改配置文件读写类来读写此量程信息;
2024-12-11 17:33:29 +08:00

48 lines
1009 B
C++

#ifndef RESONON_IMAGER
#define RESONON_IMAGER
#include <string>
#include <opencv2/core/core.hpp>
#include "ImagerOperationBase.h"
#include "resonon_imager_basler.h"
#include "image2display.h"
#include "fileOperation.h"
class ResononPicaLImager:public ImagerOperationBase
{
Q_OBJECT
public:
ResononPicaLImager();
~ResononPicaLImager();
Resonon::PikaBasler m_ResononPicaLImager;//
double getWavelengthAtBand(int band);
int getBandCount();
int getSampleCount();
double getFramerate();
double getIntegrationTime();
double getGain();
void setFramerate(const double frames_per_second);
void setIntegrationTime(const double milliseconds);
void setGain(const double gain);
int getStartBand();
int getEndBand();
void connectImager(const char* camera_sn = NULL);
void disconnectImager();
void imagerStartCollect();
void imagerStopCollect();
unsigned short* getFrame(unsigned short* buffer);
void setSpectraBin(int new_spectral_bin);
protected:
private:
public slots:
signals:
};
#endif