1234567891011121314151617181920212223242526272829 |
- #ifndef SIMILARITY_EXPORT
- #define SIMILARITY_EXPORT
- #ifdef SIMILARITY_EXPORT
- #define SIMILARITY_EXPORT_API __declspec(dllexport)
- #else
- #define SIMILARITY_EXPORT_API __declspec(dllimport)
- #endif
- #include <opencv2/opencv.hpp>
- #include <iostream>
- using namespace std;
- using namespace cv;
- typedef struct ImgageInformation
- {
- int imgW;
- int imgH;
- int channel;
- } ImgInfo;
- extern "C"
- SIMILARITY_EXPORT_API bool __cdecl CalcuSimilarity(__in unsigned char* imgData1, __in unsigned char* imgData2, bool isLesion,
- ImgInfo imgInfo1, ImgInfo imgInfo2, float& outVal);
- #endif
|