1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- // Copyright (c) 2002-2015 ECOM. All Rights Reserved.
- // All the information contained in this file remain the sole and exclusive
- // property of ECOM and shall not be disclosed by the recipient to a third
- // party without the prior consent of ECOM.
- /*! \file CalibrationFunc_API.h
- Abstract:
- This module defines the ECOM Calibration API .
- It includes :
- - .
- */
- // CalibrationFunc.h : CalibrationFunc DLL 的主头文件
- //
- #pragma once
- #ifdef CALIBFUNC
- #define ECOMCALIB_API _declspec(dllexport)
- #else
- #define ECOMCALIB_API _declspec(dllimport)
- #endif
- EXTERN_C
- {
- class ECOMCALIB_API CECOMCorrection
- {
- public:
- CECOMCorrection();
- ~CECOMCorrection();
- ecom_error InitECOMCalibParam(Struct_EcomCalib );
-
- //加载校正文件
- ecom_error LoadECOMCalFile(bool bLoadCal);
- ecom_error LoadECOMGainMap(bool bLoadGain);
- ecom_error LoadECOMPixelMap(bool bLoadDefect);
- ecom_error LoadECOMLineMap(void);
- //确认校正
- ecom_error AddImageToPixMap(WORD * pImage);
- ecom_error AverageECOMGainMap(WORD * wImage,int nRefIndex,bool bStart);
- //保存校正文件
- ecom_error CompleteECOMCali();
- ecom_error StoreECOMGainMap(void);
- ecom_error StoreECOMPixMap(void);
- //应用校正文件
- ecom_error ApplyECOMReference( WORD* pImage);
- ecom_error ApplyECOMGainMap(WORD *pImage);
- ecom_error ApplyECOMPixMap(WORD* pImage);
- ecom_error ApplyECOMLineMap(WORD* pImage);
- //放弃校正
- ecom_error AbortECOMCali();
- ecom_error AbortECOMPixMap(void);
- //卸载校正文件
- ecom_error UnloadECOMCalFile();
- ecom_error UnLoadECOMGainMap(void);
- ecom_error UnLoadECOMPixMap(void);
- };
- };
|