#ifndef SIMILARITY_EXPORT #define SIMILARITY_EXPORT #ifdef SIMILARITY_EXPORT #define SIMILARITY_EXPORT_API __declspec(dllexport) #else #define SIMILARITY_EXPORT_API __declspec(dllimport) #endif #include #include 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