Export.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #pragma once
  2. #include "EncodeDecodeHelper.h"
  3. #include "UniformHelper.h"
  4. #include "SliceHelper.h"
  5. #include "FusionHelper.h"
  6. #pragma region 全局变量
  7. EncodeDecodeHelper _encodeDecode;
  8. #pragma endregion
  9. #pragma region 导出函数
  10. /// <summary>
  11. /// 获取错误详情
  12. /// </summary>
  13. /// <param name="errorCode"></param>
  14. /// <param name="errorMsg"></param>
  15. /// <param name="errorMaxLen"></param>
  16. /// <returns></returns>
  17. extern "C" __declspec(dllexport) void GetErrorCodeAndMsg(ErrorCode& errorCode,char* errorMsg, const int errorMaxLen);
  18. /// <summary>
  19. /// 对图像数据进行解码
  20. /// </summary>
  21. /// <param name="srcImgData"></param>
  22. /// <param name="srcDataSize"></param>
  23. /// <param name="dstImgData"></param>
  24. /// <param name="dstDataSize"></param>
  25. /// <param name="imReadMode"></param>
  26. /// <returns></returns>
  27. extern "C" __declspec(dllexport) bool ImDataDecode(const uint8_t * srcImgData, const int srcDataSize,
  28. uint8_t * dstImgData, const int dstDataSize, ImreadModes imReadMode);
  29. /// <summary>
  30. /// 对图像数据进行编码
  31. /// </summary>
  32. /// <param name="srcImgInfo"></param>
  33. /// <param name="extension"></param>
  34. /// <param name="imwriteParams"></param>
  35. /// <param name="paramCount"></param>
  36. /// <param name="dstImgData"></param>
  37. /// <param name="dstDataSize"></param>
  38. /// <returns></returns>
  39. extern "C" __declspec(dllexport) bool ImDataEncode(ImageInfo srcImgInfo,ImwriteExtension extension,
  40. ImwriteParam * imwriteParams,int paramCount, uint8_t * dstImgData, int& dstDataSize);
  41. /// <summary>
  42. /// 将直线扫查的数据转成均一立方体
  43. /// </summary>
  44. /// <param name="volumeInfo"></param>
  45. /// <param name="dstVolumeData"></param>
  46. /// <returns></returns>
  47. extern "C" __declspec(dllexport) bool StraightScanDataToUniformCube(VolumeDataPreProcessorInfo volumeInfo,
  48. uint8_t * dstVolumeData);
  49. /// <summary>
  50. /// 获取立方体的六个表面
  51. /// </summary>
  52. /// <param name="volumeDataInfo"></param>
  53. /// <param name="surfaceNum"></param>
  54. /// <param name="surfaceInfos"></param>
  55. /// <returns></returns>
  56. extern "C" __declspec(dllexport) bool GetSurfacePicsFromUniformCube(UniformVolumeDataInfo volumeDataInfo,
  57. int surfaceNum, SurfacePicInfo * surfaceInfos);
  58. /// <summary>
  59. /// 基于ITK的x方向融合
  60. /// </summary>
  61. /// <param name="volumeDataInfos"></param>
  62. /// <param name="volumeDataCount"></param>
  63. /// <param name="fusedDataInfo"></param>
  64. /// <returns></returns>
  65. extern "C" __declspec(dllexport) bool ITKBasedFusionAlongX(UniformVolumeDataInfo* volumeDataInfos, int volumeDataCount,
  66. UniformVolumeDataInfo& fusedDataInfo);
  67. /// <summary>
  68. /// 对图像数据进行编码并保存至本地
  69. /// </summary>
  70. /// <param name="srcImgInfo"></param>
  71. /// <param name="extension"></param>
  72. /// <param name="imwriteParams"></param>
  73. /// <param name="paramCount"></param>
  74. /// <param name="savePath"></param>
  75. /// <returns></returns>
  76. extern "C" __declspec(dllexport) bool ImDataSave(ImageInfo srcImgInfo, ImwriteExtension extension,
  77. ImwriteParam * imwriteParams, int paramCount, const char* savePath);
  78. #pragma endregion