123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*! @file
- ********************************************************************************
- <PRE>
- Copyright (c) E-COM 2009-2017. All rights reserved.
- 模块名称: GetEXI.dll
- 文件名称: CalWindow.h
- 关联文件:
- 描述: EXI计算模块头文件,公开V2和V3的调用接口及内部函数。
- 注意事项:
- 作者: ECOM 陈冠男
- 版本: 1.0.0.15
- 修改历史:
- 2014-02-17 将EXI计算接口移植到底层调用。
- 2015-04-01 区分V3接口,并保留原接口,版本向前兼容。
- 2015-12-02 修改算法,与新版遮光器识别模块(2.3.1.17以后版本)相匹配
- 2017-04-13 格式修改。
- </PRE>
- *******************************************************************************/
- #pragma once
- #include <memory.h>
- #include <stdio.h>
- #ifdef _WIN64
- #ifdef _DEBUG
- #pragma comment(lib, "GetEXIX64D.lib")
- #else
- #pragma comment(lib, "GetEXIX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "GetEXID.lib")
- #else
- #pragma comment(lib, "GetEXI.lib")
- #endif
- #endif
- #ifndef WORD
- typedef unsigned short WORD;
- #endif
- #ifndef BYTE
- typedef unsigned char BYTE;
- #endif
- extern "C" int __declspec(dllexport) GetEXI( unsigned short* pData,int nWidth,int nHeight,int nLeft,int nRight,int nTop,int nBottom);
- extern "C" int __declspec(dllexport) GetEXI4Detector(WORD* pImage, BYTE* pMask, BYTE* pMask1, int nWidth, int nHeight, int ImageBit, int &EXI);
- extern "C" int __declspec(dllexport) GetEXI4DetectorForV3P1(WORD* pImage, BYTE* pMask, BYTE* pMask1, int nWidth, int nHeight, int ImageBit, int &EXI);
- extern "C" int __declspec(dllexport) GetEXIRF(unsigned short* pImage, int nWidth, int nHeight, int nImageBit, int top, int bottom, int left, int right, int &EXI);
- //add by zhaoyiru,20170928
- extern "C" int __declspec(dllexport) GetEXI4DetectorForV3P1New(WORD* pImage, BYTE* pMask, BYTE* pMask1, int nWidth, int nHeight, int ImageBit, int &EXI, float &EXI_display, float fCoef);
- //EXI:原ECOM EXI
- //EXI_display: 西门子显示的EXI
- extern "C" int __declspec(dllexport) GetCoef(WORD* pImage, int nWidth, int nHeight, float fTargetEXI, float fTargetDoes, float fSysDoesOrAECDoes, float &fCoef, float &fROIMeanCal);
- extern "C" int __declspec(dllexport) GetCenterROIEXI(WORD* pImage, int nWidth, int nHeight, float fCoef, float &fROIMeanCal);
- //fTargetEXI: 目标EXI
- //fTargetDoes: 目标Does
- //例:西门子1uGy要求显示100
- //fSysDoesOrAECDoes: 探测器可接受呈像质量Does,或者AEC截止Does.
- int OtsuThreshold( int *Hisq, int area, int N );
- //add 20180615
- // for DR V2
- extern "C" int __declspec(dllexport) GetEXIValue(WORD* pImage, float* pDataInfo, float* pData, int nWidth, int nHeight, int ImageBit, int &EXI, float &EXI_display, float fCoef);
|