CalibrationProcess.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #pragma once
  2. #include <string>
  3. #include "iRayCtrlDefinition.h"
  4. //using namespace std;
  5. class CalibrationProcess
  6. {
  7. std::string g_strAppPath;
  8. int m_nFullImgWidth; //有效图像的宽
  9. int m_nFullImgHeight; //有效图像的高
  10. int m_nTopOffset; //图像上边裁剪像素值
  11. int m_nLeftOffset; //图像左侧裁剪像素值
  12. public:
  13. CalibrationProcess();
  14. ~CalibrationProcess();
  15. std::string GetCalibDueDate(DeviceIndexStruct DeviceConf, std::string strCalibDate);
  16. bool CheckCalibReportExist();
  17. bool CreatCalibrationReport(DeviceIndexStruct DeviceConf, bool bLTEenable, bool bModifyItem);
  18. bool CheckCalibartionDue(DeviceIndexStruct DeviceConf);
  19. bool GetCalibReportParam(bool bLTEenable, DeviceIndexStruct DeviceConf, std::string key, std::string & Value);
  20. bool UpdateFDCalibList(bool bLTEenable, std::string strPanelSerial, std::string strPanelType);
  21. private:
  22. void *m_pZSKKPixMatrix;
  23. long m_nGrayHist[256]; // 统计defect文件,每个坏点分类的个数
  24. bool m_bDefectAccept;
  25. int m_nOldDay; //校正日期定期检查的上次时间(某一天)
  26. int m_nTotalDefectLine;
  27. int m_nTotalDefectColumn;
  28. int m_nTotalDoubleDefectLine;
  29. int m_nTotalDoubleDefectColumn;
  30. int m_nTripleDoubleDefectLine;
  31. int m_nTripleDoubleDefectColumn;
  32. int m_nDefectLineMinGap;
  33. int m_nDefectColumnMinGap;
  34. int m_nTotalECV;
  35. int ParseFxdFile(DeviceIndexStruct DeviceConf, std::string strFileName, bool bManualDefect = false);
  36. bool AnalysisCalibrationData(DeviceIndexStruct DeviceConf, char * pCalibData, int nColumn, int nLine, bool bManualDefect);
  37. bool StoreZSKKPixMap(DeviceIndexStruct DeviceConf, bool bManualDefect);
  38. bool AddImageToPixMap(WORD * pImage);
  39. //bool ApplyZSKKPixMap(WORD* pImage);
  40. bool LoadZSKKPixelMap(DeviceIndexStruct DeviceConf, bool bInit);
  41. bool UnLoadZSKKPixMap(void);
  42. bool CreateEmptyMap(int nHeight, std::string pcRefPath);
  43. bool CreatZSKKDefectMap(DeviceIndexStruct DeviceConf, char* pImage, int nWidth, int nHeight, bool bManualDefect);
  44. bool UpdateFDUIFCalibList(bool bLTEenable, std::string strPanelSerial, std::string strPanelType);
  45. };