1
0

VerificationTools.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #pragma once
  2. #include<vector>
  3. #include <opencv2/opencv.hpp>
  4. using namespace cv;
  5. struct MyPoint
  6. {
  7. int x;
  8. int y;
  9. };
  10. struct RoiCoor
  11. {
  12. int x;
  13. int y;
  14. int width;
  15. int height;
  16. };
  17. #ifndef LESIONDESCRI_EXPORT
  18. #define LESIONDESCRI_EXPORT
  19. #ifdef LESIONDESCRI_EXPORT
  20. #define LESIONDESCRI_EXPORT_API __declspec(dllexport)
  21. #else
  22. #define LESIONDESCRI_EXPORT_API __declspec(dllimport)
  23. #endif
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif // __cplusplus
  28. LESIONDESCRI_EXPORT_API void __cdecl BreastDescriptionLesionsRect(int imgW, int imgH, MyPoint* contourPts, int contourLen, RoiCoor lesionRectPr, int& sameLesion);
  29. LESIONDESCRI_EXPORT_API void __cdecl DescriptionLesionsRect(int imgW, int imgH, MyPoint* contourPts, int contourLen, RoiCoor& lesionRectPr);
  30. LESIONDESCRI_EXPORT_API void __cdecl GallGetContours(char* name, int nameLen, __inout MyPoint* contour_points_out, __inout MyPoint* contour_points_in, __inout int* contourLen);
  31. LESIONDESCRI_EXPORT_API void __cdecl ThyroidDescriptionModelProcess(__in unsigned char* imgData, int channel, int imgW, int imgH,
  32. RoiCoor roiVec, int ptsNum1, MyPoint* thyroidPts, int ptsNum2, MyPoint* lesionPts,
  33. int modelW, int modelH, int modelChannel, RoiCoor& roiDst, __out unsigned char* imgDataDst);
  34. LESIONDESCRI_EXPORT_API void __cdecl ThyroidDescriptionModelProcessModelImage(__in unsigned char* imgModelData, int imgModelW, int imgModelH, int channelModel,
  35. RoiCoor roiModelVec, int& contourNum, int* contourLen, __inout MyPoint* calcificationPts);
  36. LESIONDESCRI_EXPORT_API void __cdecl ThyroidDescriptionContour(__in unsigned char* imgData, int channel, int imgW, int imgH,
  37. RoiCoor roiVec, int ptsNum1, MyPoint* lesionPts, RoiCoor& roiDst);
  38. LESIONDESCRI_EXPORT_API void __cdecl video2image();
  39. LESIONDESCRI_EXPORT_API void __cdecl Image_to_video_2();
  40. LESIONDESCRI_EXPORT_API void __cdecl GallLesionGetContours(char* name, int nameLen, __inout MyPoint* contour_points, __inout int* contourLen, int& GallLesionNum);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif