0

当我尝试从 DICOM 文件中提取图像时出现以下错误。它适用于某些文件,但不是全部。如何解决这个问题?我正在使用 dcm4che 库进行转换。将jar、dll、so文件添加到lib中。

Image Reader: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader not reg
istered. Stacktrace follows:
java.lang.RuntimeException: Image Reader: com.sun.media.imageioimpl.plugins.jpeg
.CLibJPEGImageReader not registered
        at org.dcm4che.imageio.codec.ImageReaderFactory.getImageReader(ImageRead
erFactory.java:205)

库版本:
dcm4che-core-3.2.1
dcm4che-image-3.2.1
dcm4che-imageio-3.2.1
dcm4che-imageio-rle-3.2.1
dcm4che-tool-dcm2jpg-3.2.1
jai_imageio-1.2-pre-dr- b04

4

1 回答 1

0

您必须将 jai 安装到 jre 中,并为您使用的操作系统/架构提供正确的本机组件。

文档包含 dcm4chee 的说明,但即使您只使用片段,概念也是相同的。

于 2015-12-19T13:57:19.723 回答