CalibrationFunc_API.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // Copyright (c) 2002-2015 ECOM. All Rights Reserved.
  2. // All the information contained in this file remain the sole and exclusive
  3. // property of ECOM and shall not be disclosed by the recipient to a third
  4. // party without the prior consent of ECOM.
  5. /*! \file CalibrationFunc_API.h
  6. Abstract:
  7. This module defines the ECOM Calibration API .
  8. It includes :
  9. - .
  10. */
  11. // CalibrationFunc.h : CalibrationFunc DLL 的主头文件
  12. //
  13. #pragma once
  14. #ifdef CALIBFUNC
  15. #define ECOMCALIB_API _declspec(dllexport)
  16. #else
  17. #define ECOMCALIB_API _declspec(dllimport)
  18. #endif
  19. EXTERN_C
  20. {
  21. class ECOMCALIB_API CECOMCorrection
  22. {
  23. public:
  24. CECOMCorrection();
  25. ~CECOMCorrection();
  26. ecom_error InitECOMCalibParam(Struct_EcomCalib );
  27. //加载校正文件
  28. ecom_error LoadECOMCalFile(bool bLoadCal);
  29. ecom_error LoadECOMGainMap(bool bLoadGain);
  30. ecom_error LoadECOMPixelMap(bool bLoadDefect);
  31. ecom_error LoadECOMLineMap(void);
  32. //确认校正
  33. ecom_error AddImageToPixMap(WORD * pImage);
  34. ecom_error AverageECOMGainMap(WORD * wImage,int nRefIndex,bool bStart);
  35. //保存校正文件
  36. ecom_error CompleteECOMCali();
  37. ecom_error StoreECOMGainMap(void);
  38. ecom_error StoreECOMPixMap(void);
  39. //应用校正文件
  40. ecom_error ApplyECOMReference( WORD* pImage);
  41. ecom_error ApplyECOMGainMap(WORD *pImage);
  42. ecom_error ApplyECOMPixMap(WORD* pImage);
  43. ecom_error ApplyECOMLineMap(WORD* pImage);
  44. //放弃校正
  45. ecom_error AbortECOMCali();
  46. ecom_error AbortECOMPixMap(void);
  47. //卸载校正文件
  48. ecom_error UnloadECOMCalFile();
  49. ecom_error UnLoadECOMGainMap(void);
  50. ecom_error UnLoadECOMPixMap(void);
  51. };
  52. };