Hello,
I am also struggling to read specific files using the Dcm2Jpg libraries. The image-000001.dcm file (attached) does not convert while the exact same code works for US-PAL-8-10x-echo.dcm. (Both these DICOM files are entirely anonymised.)
I have attempted building on Windows 10 in Eclipse v4.9.0, attempted using 32 bit and 64 bit Java JDK 1.8.
I am using version dcme library v5.15.0
The error I am receiving is on calling dcm2jpg.convert(in, out):
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.dcm4che3.opencv.StreamSegment.<clinit>(StreamSegment.java:78)
at org.dcm4che3.opencv.NativeImageReader.getNativeImage(NativeImageReader.java:256)
at org.dcm4che3.opencv.NativeImageReader.read(NativeImageReader.java:252)
at org.dcm4che3.imageio.plugins.dcm.DicomImageReader.read(DicomImageReader.java:453)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg.readImage(Dcm2Jpg.java:382)
at org.dcm4che3.tool.dcm2jpg.Dcm2Jpg.convert(Dcm2Jpg.java:361)
at DicomImageExtractor.generateBitmaps(DicomImageExtractor.java:85)
at DicomImageExtractor.doProcessing(DicomImageExtractor.java:54)
at DicomImageExtractor.main(DicomImageExtractor.java:27)
The dcm2che library looks great, only I can't use it if it doesn't support all file types. I have read this thread but am struggling to solve this after a day of effort.
Many thanks for any advice,
Phil