dcm4che:是医疗健康行业中一套开源应用程序和工具的,采用Java语言开发,可用于读取dcm格式文件以及对图像进行相关处理。类似的库还有:fo-dicom(c#开发) DCMTK(c++开发)
1、下载源码,版本:5.29.2
dcm4che/dcm4che at 5.29.2 (github.com)
2、解压,进入到目录,执行
mvn install -Dmaven.test.skip=true
(提示:阿里等镜像不一定是最新的,所以使用默认仓库,速度可能会慢些)
3、遇到问题
问题1:dcm4che-imageio-opencv编译失败,缺少weasis-core-img:jar:4.6.0
解决:手动下载(可能需要翻墙才能下):放到maven仓库对应的文件夹下
https://github.com/nroduit/mvn-repo/blob/master/org/weasis/core/weasis-core-img/4.6.0/weasis-core-img-4.6.0.jar
weasis-core-img:jar:4.6.0.jar 下载:https://download.csdn.net/download/yl_cc/87606480
问题2:一直卡在下载地址为https://raw.github.com/nroduit/mvn-repo/master
解决:把https://raw.github.com/nroduit/mvn-repo/master/改成https://github.com/nroduit/mvn-repo/tree/master/
4、重新编译,成功(耗时较长)