12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include <string>
- #include "DetectorDefinition.h"
- class CalibrationProcess
- {
- std::string g_strAppPath;
- int m_nFullImgWidth; //有效图像的宽
- int m_nFullImgHeight; //有效图像的高
- int m_nLeftOffset; //图像左侧裁剪像素值
- int m_nTopOffset; //图像上边裁剪像素值
- public:
- CalibrationProcess();
- ~CalibrationProcess();
- std::string GetCalibDueDate(DeviceIndexStruct DeviceConf, std::string strCalibDate);
- bool CheckCalibartionDue(DeviceIndexStruct DeviceConf);
- private:
- void *m_pZSKKPixMatrix;
- bool m_bDefectAccept;
- int m_nOldDay; //校正日期定期检查的上次时间(某一天)
- int m_nTotalDefectLine;
- int m_nTotalDefectColumn;
- int m_nTotalDoubleDefectLine;
- int m_nTotalDoubleDefectColumn;
- int m_nTripleDoubleDefectLine;
- int m_nTripleDoubleDefectColumn;
- int m_nDefectLineMinGap;
- int m_nDefectColumnMinGap;
- int m_nTotalECV;
- bool StoreZSKKPixMap(DeviceIndexStruct DeviceConf, bool bManualDefect);
- bool AddImageToPixMap(WORD * pImage);
- //bool ApplyZSKKPixMap(WORD* pImage);
- bool LoadZSKKPixelMap(DeviceIndexStruct DeviceConf, bool bInit);
- bool UnLoadZSKKPixMap(void);
- bool CreateEmptyMap(int nHeight, std::string pcRefPath);
- bool CreatZSKKDefectMap(DeviceIndexStruct DeviceConf, char* pImage, int nWidth, int nHeight, bool bManualDefect);
- };
|