Export.h 620 B

1234567891011121314151617181920212223242526272829
  1. #ifndef SIMILARITY_EXPORT
  2. #define SIMILARITY_EXPORT
  3. #ifdef SIMILARITY_EXPORT
  4. #define SIMILARITY_EXPORT_API __declspec(dllexport)
  5. #else
  6. #define SIMILARITY_EXPORT_API __declspec(dllimport)
  7. #endif
  8. #include <opencv2/opencv.hpp>
  9. #include <iostream>
  10. using namespace std;
  11. using namespace cv;
  12. typedef struct ImgageInformation
  13. {
  14. int imgW;
  15. int imgH;
  16. int channel;
  17. } ImgInfo;
  18. extern "C"
  19. SIMILARITY_EXPORT_API bool __cdecl CalcuSimilarity(__in unsigned char* imgData1, __in unsigned char* imgData2, bool isLesion,
  20. ImgInfo imgInfo1, ImgInfo imgInfo2, float& outVal);
  21. #endif