CalibrationProcess.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #include <string>
  3. #include "IRayDefinition.h"
  4. class CalibrationProcess
  5. {
  6. std::string g_strAppPath;
  7. int m_nFullImgWidth; //有效图像的宽
  8. int m_nFullImgHeight; //有效图像的高
  9. int m_nLeftOffset; //图像左侧裁剪像素值
  10. int m_nTopOffset; //图像上边裁剪像素值
  11. public:
  12. CalibrationProcess();
  13. ~CalibrationProcess();
  14. std::string GetCalibDueDate(DeviceIndexStruct DeviceConf, std::string strCalibDate);
  15. bool CheckCalibartionDue(DeviceIndexStruct DeviceConf);
  16. private:
  17. void *m_pZSKKPixMatrix;
  18. bool m_bDefectAccept;
  19. int m_nOldDay; //校正日期定期检查的上次时间(某一天)
  20. int m_nTotalDefectLine;
  21. int m_nTotalDefectColumn;
  22. int m_nTotalDoubleDefectLine;
  23. int m_nTotalDoubleDefectColumn;
  24. int m_nTripleDoubleDefectLine;
  25. int m_nTripleDoubleDefectColumn;
  26. int m_nDefectLineMinGap;
  27. int m_nDefectColumnMinGap;
  28. int m_nTotalECV;
  29. bool StoreZSKKPixMap(DeviceIndexStruct DeviceConf, bool bManualDefect);
  30. bool AddImageToPixMap(WORD * pImage);
  31. //bool ApplyZSKKPixMap(WORD* pImage);
  32. bool LoadZSKKPixelMap(DeviceIndexStruct DeviceConf, bool bInit);
  33. bool UnLoadZSKKPixMap(void);
  34. bool CreateEmptyMap(int nHeight, std::string pcRefPath);
  35. bool CreatZSKKDefectMap(DeviceIndexStruct DeviceConf, char* pImage, int nWidth, int nHeight, bool bManualDefect);
  36. };