CalWindow.h 934 B

123456789101112131415161718192021
  1. #ifndef FREFILTER_H
  2. #define FREFILTER_H
  3. #ifdef _EXPORTING
  4. #define FUNC_DECLSPEC __declspec(dllexport)
  5. #else
  6. #define FUNC_DECLSPEC extern "C" int __declspec(dllimport)
  7. #endif
  8. //FUNC_DECLSPEC GetEXI( unsigned short* pData,int nWidth,int nHeight,int nLeft,int nRight,int nTop,int nBottom);
  9. bool CalWindow(int nFlag,unsigned short* pData, int nWidth,int nHeight,int &nWindowBegin, int &nWindowEnd,int l,int r,int t,int b);
  10. bool CalWindow4NewEXI(int nFlag, int* pHistogram, int nWidth, int nHeight, int &nWindowBegin, int &nWindowEnd );
  11. int GetAvg(int *pHistogram,int begin,int end,int nPoint,int nRange,int nGrayNum);
  12. int GetMaxi(int *pHistogram,int nBegin,int nEnd,int nGrayNum);
  13. int GetMini(int *pHistogram,int nBegin,int nEnd,int nGrayNum);
  14. void Smooth(int *pHistogram,int nGrayNum,int nTemSize);
  15. int GetEXI4Detector( WORD* pImage, BYTE* pMask, BYTE* pMask1,int nWidth, int nHeight, int ImageBit, int &EXI ) ;
  16. #endif