12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #pragma once
- #include "EncodeDecodeHelper.h"
- #include "UniformHelper.h"
- #include "SliceHelper.h"
- #include "FusionHelper.h"
- #pragma region 全局变量
- EncodeDecodeHelper _encodeDecode;
- #pragma endregion
- #pragma region 导出函数
- /// <summary>
- /// 获取错误详情
- /// </summary>
- /// <param name="errorCode"></param>
- /// <param name="errorMsg"></param>
- /// <param name="errorMaxLen"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) void GetErrorCodeAndMsg(ErrorCode& errorCode,char* errorMsg, const int errorMaxLen);
- /// <summary>
- /// 对图像数据进行解码
- /// </summary>
- /// <param name="srcImgData"></param>
- /// <param name="srcDataSize"></param>
- /// <param name="dstImgData"></param>
- /// <param name="dstDataSize"></param>
- /// <param name="imReadMode"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) bool ImDataDecode(const uint8_t * srcImgData, const int srcDataSize,
- uint8_t * dstImgData, const int dstDataSize, ImreadModes imReadMode);
- /// <summary>
- /// 对图像数据进行编码
- /// </summary>
- /// <param name="srcImgInfo"></param>
- /// <param name="extension"></param>
- /// <param name="imwriteParams"></param>
- /// <param name="paramCount"></param>
- /// <param name="dstImgData"></param>
- /// <param name="dstDataSize"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) bool ImDataEncode(ImageInfo srcImgInfo,ImwriteExtension extension,
- ImwriteParam * imwriteParams,int paramCount, uint8_t * dstImgData, int& dstDataSize);
- /// <summary>
- /// 将直线扫查的数据转成均一立方体
- /// </summary>
- /// <param name="volumeInfo"></param>
- /// <param name="dstVolumeData"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) bool StraightScanDataToUniformCube(VolumeDataPreProcessorInfo volumeInfo,
- uint8_t * dstVolumeData);
- /// <summary>
- /// 获取立方体的六个表面
- /// </summary>
- /// <param name="volumeDataInfo"></param>
- /// <param name="surfaceNum"></param>
- /// <param name="surfaceInfos"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) bool GetSurfacePicsFromUniformCube(UniformVolumeDataInfo volumeDataInfo,
- int surfaceNum, SurfacePicInfo * surfaceInfos);
- /// <summary>
- /// 基于ITK的x方向融合
- /// </summary>
- /// <param name="volumeDataInfos"></param>
- /// <param name="volumeDataCount"></param>
- /// <param name="fusedDataInfo"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) bool ITKBasedFusionAlongX(UniformVolumeDataInfo* volumeDataInfos, int volumeDataCount,
- UniformVolumeDataInfo& fusedDataInfo);
- /// <summary>
- /// 对图像数据进行编码并保存至本地
- /// </summary>
- /// <param name="srcImgInfo"></param>
- /// <param name="extension"></param>
- /// <param name="imwriteParams"></param>
- /// <param name="paramCount"></param>
- /// <param name="savePath"></param>
- /// <returns></returns>
- extern "C" __declspec(dllexport) bool ImDataSave(ImageInfo srcImgInfo, ImwriteExtension extension,
- ImwriteParam * imwriteParams, int paramCount, const char* savePath);
- #pragma endregion
|