TeledyneXrayProcessingLib.h 2.6 KB

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #ifndef TXPL_API
  3. #ifdef TXPL_EXPORTS
  4. #define TXPL_API __declspec(dllexport)
  5. #else
  6. #define TXPL_API __declspec(dllimport)
  7. #endif
  8. #endif
  9. #ifdef __cplusplus
  10. extern "C"
  11. {
  12. #endif
  13. TXPL_API double __cdecl TXP_CalcRoiAverage(const unsigned short* inputData, int width, int height, int roiX, int roiY, int roiWidth, int roiHeight);
  14. TXPL_API bool __cdecl TXP_OffsetCorrection(const unsigned short* inputData, const unsigned short* darkData, unsigned short* outputData, int width, int height);
  15. TXPL_API bool __cdecl TXP_FlatfieldCorrection(const unsigned short* inputData, const unsigned short* gainData, const unsigned short* darkData, unsigned short* outputData, double gainAverage, int blackOffset, unsigned short saturationValue, int width, int height);
  16. TXPL_API bool __cdecl TXP_DefectCorrection(const unsigned short* inputData, const unsigned short* defectsData, unsigned short* outputData, int width, int height);
  17. TXPL_API bool __cdecl TXP_CreateDefectMaskImage(const unsigned short* inputData, unsigned short* maskData, float deviation, bool absolute, int width, int height);
  18. TXPL_API bool __cdecl TXP_BlemishSpecStats(const unsigned short* inputData, unsigned short* outputData, int width, int height, const char* detectorSerial, const char* settingsFile, bool* result, void(*statusCallback)(const char* message, void* context), void* statusContext);
  19. TXPL_API bool __cdecl TXP_CreateClipMask(const unsigned short* inputData, unsigned short* clipMaskOutput, unsigned short saturationValue, int width, int height);
  20. TXPL_API bool __cdecl TXP_Clip(const unsigned short* inputData, const unsigned short* clipMaskInput, unsigned short* outputData, unsigned short saturationValue, int width, int height);
  21. TXPL_API bool __cdecl TXP_ReadTiff(const char *filename, unsigned short* outputData, int width, int height);
  22. TXPL_API bool __cdecl TXP_WriteTiff(const char *filename, const unsigned short* outputData, int width, int height);
  23. TXPL_API int __cdecl TXP_GetTiffHeight(const char *filename);
  24. TXPL_API int __cdecl TXP_GetTiffWidth(const char *filename);
  25. TXPL_API void __cdecl TXP_SetMaxThreads(int numThreads);
  26. TXPL_API bool __cdecl TXP_MultiFrameDigitalTDI(int numFrames, bool bAverage, int width, int height, unsigned short* frameData, unsigned* buffer, unsigned short* resultLines, unsigned short darkOffset, bool bReverse, int roiX = -1, int roiY = -1, int roidX = -1, int roidY = -1, unsigned short clipValue = 0xFFFF);
  27. // TXPL_API short __cdecl TXP_ImageFilter(unsigned short* imagedata, int width, int height, short nValue, int deviation); //not supported yet
  28. #ifdef __cplusplus
  29. }
  30. #endif