支持corning 410,并添加配置文件
This commit is contained in:
tangchao0503
2025-05-09 17:27:04 +08:00
parent c2b3f131ee
commit c1e4144ed6
12 changed files with 1745 additions and 5 deletions

View File

@ -45,6 +45,36 @@ public:
bool createConfigFile();
bool updateConfigFile();
private:
string m_configfilePath;
Config cfg;
};
class CorningConfigfile
{
public:
CorningConfigfile();
void setConfigfilePath(string configfilePath);
bool isConfigfileExist();
bool parseConfigfile();
bool getSpectralBin(int& spectralBin);
bool getspatialBin(int& spatialBin);
bool getEffectiveWindow(int& width, int& offsetx, int& height, int& offsety);
bool getEffectiveWindowRoi(int& width, int& offsetx);
bool getWindowOffsety_HeightOfSpectral(int& offsety, int& height, string spectralBinString);//spectralBinString = "bin1"<22><><EFBFBD>ߡ<EFBFBD>bin2<6E><32>
bool getGainOffset(float& gain, float& offset);
bool getGainOffsetOfSpectralBin1(float& gain, float& offset);
bool getSN(QString& SN);
bool getBufferPolicy(int& bufferPolicy);
bool getAcqBufferSize(int& acqBufferSize);
bool getPushFlowParam(int& flowSwitch, int& rgbHeight, int& framerateVideo);
bool createConfigFile();
bool updateConfigFile();
private:
string m_configfilePath;
Config cfg;