123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #ifndef TXPL_API
- #ifdef TXPL_EXPORTS
- #define TXPL_API __declspec(dllexport)
- #else
- #define TXPL_API __declspec(dllimport)
- #endif
- #endif
- #ifdef __cplusplus
- extern "C"
- {
- #endif
-
- TXPL_API double __cdecl TXP_CalcRoiAverage(const unsigned short* inputData, int width, int height, int roiX, int roiY, int roiWidth, int roiHeight);
- TXPL_API bool __cdecl TXP_OffsetCorrection(const unsigned short* inputData, const unsigned short* darkData, unsigned short* outputData, int width, int height);
- 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);
- TXPL_API bool __cdecl TXP_DefectCorrection(const unsigned short* inputData, const unsigned short* defectsData, unsigned short* outputData, int width, int height);
- TXPL_API bool __cdecl TXP_CreateDefectMaskImage(const unsigned short* inputData, unsigned short* maskData, float deviation, bool absolute, int width, int height);
- 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);
- TXPL_API bool __cdecl TXP_CreateClipMask(const unsigned short* inputData, unsigned short* clipMaskOutput, unsigned short saturationValue, int width, int height);
- TXPL_API bool __cdecl TXP_Clip(const unsigned short* inputData, const unsigned short* clipMaskInput, unsigned short* outputData, unsigned short saturationValue, int width, int height);
- TXPL_API bool __cdecl TXP_ReadTiff(const char *filename, unsigned short* outputData, int width, int height);
- TXPL_API bool __cdecl TXP_WriteTiff(const char *filename, const unsigned short* outputData, int width, int height);
- TXPL_API int __cdecl TXP_GetTiffHeight(const char *filename);
- TXPL_API int __cdecl TXP_GetTiffWidth(const char *filename);
- TXPL_API void __cdecl TXP_SetMaxThreads(int numThreads);
- 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);
- // TXPL_API short __cdecl TXP_ImageFilter(unsigned short* imagedata, int width, int height, short nValue, int deviation); //not supported yet
- #ifdef __cplusplus
- }
- #endif
|