#pragma once #include #include using namespace cv; struct MyPoint { int x; int y; }; struct RoiCoor { int x; int y; int width; int height; }; #ifndef LESIONDESCRI_EXPORT #define LESIONDESCRI_EXPORT #ifdef LESIONDESCRI_EXPORT #define LESIONDESCRI_EXPORT_API __declspec(dllexport) #else #define LESIONDESCRI_EXPORT_API __declspec(dllimport) #endif #ifdef __cplusplus extern "C" { #endif // __cplusplus LESIONDESCRI_EXPORT_API void __cdecl BreastDescriptionLesionsRect(int imgW, int imgH, MyPoint* contourPts, int contourLen, RoiCoor lesionRectPr, int& sameLesion); LESIONDESCRI_EXPORT_API void __cdecl DescriptionLesionsRect(int imgW, int imgH, MyPoint* contourPts, int contourLen, RoiCoor& lesionRectPr); LESIONDESCRI_EXPORT_API void __cdecl GallGetContours(char* name, int nameLen, __inout MyPoint* contour_points_out, __inout MyPoint* contour_points_in, __inout int* contourLen); LESIONDESCRI_EXPORT_API void __cdecl ThyroidDescriptionModelProcess(__in unsigned char* imgData, int channel, int imgW, int imgH, RoiCoor roiVec, int ptsNum1, MyPoint* thyroidPts, int ptsNum2, MyPoint* lesionPts, int modelW, int modelH, int modelChannel, RoiCoor& roiDst, __out unsigned char* imgDataDst); LESIONDESCRI_EXPORT_API void __cdecl ThyroidDescriptionModelProcessModelImage(__in unsigned char* imgModelData, int imgModelW, int imgModelH, int channelModel, RoiCoor roiModelVec, int& contourNum, int* contourLen, __inout MyPoint* calcificationPts); LESIONDESCRI_EXPORT_API void __cdecl ThyroidDescriptionContour(__in unsigned char* imgData, int channel, int imgW, int imgH, RoiCoor roiVec, int ptsNum1, MyPoint* lesionPts, RoiCoor& roiDst); LESIONDESCRI_EXPORT_API void __cdecl video2image(); LESIONDESCRI_EXPORT_API void __cdecl Image_to_video_2(); LESIONDESCRI_EXPORT_API void __cdecl GallLesionGetContours(char* name, int nameLen, __inout MyPoint* contour_points, __inout int* contourLen, int& GallLesionNum); #ifdef __cplusplus } #endif #endif