You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a DicomImageReaderor Transcoder results in an EOFException
./dcm2dcm --version
Native OpenCV library has been found in /opt/dcm4che/lib/linux-x86-64/libopencv_java.so
dcm2dcm: 5.27.0
./dcm2dcm --jlsl <input> <output>
Native OpenCV library has been found in /opt/dcm4che/lib/linux-x86-64/libopencv_java.so
Jul 27, 2022 1:46:35 PM org.opencv.osgi.OpenCVNativeLoader init
INFO: Successfully loaded OpenCV native library.
13:46:35.677 DEBUG - Compressor: org.dcm4che3.opencv.NativeJLSImageWriter
Failed to transcode <path_to_file.dcm>: null
java.io.EOFException
at org.dcm4che3.util.StreamUtils.readFully(StreamUtils.java:69)
at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:477)
at org.dcm4che3.io.DicomInputStream.readFully(DicomInputStream.java:473)
at org.dcm4che3.imageio.codec.Transcoder.readFully(Transcoder.java:784)
at org.dcm4che3.imageio.codec.Transcoder.readFrame(Transcoder.java:777)
at org.dcm4che3.imageio.codec.Transcoder.compressPixelData(Transcoder.java:575)
at org.dcm4che3.imageio.codec.Transcoder.processPixelData(Transcoder.java:513)
at org.dcm4che3.imageio.codec.Transcoder.access$800(Transcoder.java:71)
at org.dcm4che3.imageio.codec.Transcoder$1.readValue(Transcoder.java:466)
at org.dcm4che3.io.DicomInputStream.readAttributes(DicomInputStream.java:681)
at org.dcm4che3.io.DicomInputStream.readAllAttributes(DicomInputStream.java:568)
at org.dcm4che3.imageio.codec.Transcoder.transcode(Transcoder.java:440)
at org.dcm4che3.tool.dcm2dcm.Dcm2Dcm.transcodeWithTranscoder(Dcm2Dcm.java:405)
at org.dcm4che3.tool.dcm2dcm.Dcm2Dcm.transcode(Dcm2Dcm.java:345)
at org.dcm4che3.tool.dcm2dcm.Dcm2Dcm.mtranscode(Dcm2Dcm.java:336)
at org.dcm4che3.tool.dcm2dcm.Dcm2Dcm.mtranscode(Dcm2Dcm.java:318)
at org.dcm4che3.tool.dcm2dcm.Dcm2Dcm.main(Dcm2Dcm.java:290)
The weasis-dicom-tools library successfully reads the image.
Description
I'm receiving Native DICOMs from a modality with apparently a missing byte.
You'll find a dump here
With the following parameters
we could expect a Pixel Data length of 2149875, but we have
Actual behavior
Using a
DicomImageReader
orTranscoder
results in anEOFException
The weasis-dicom-tools library successfully reads the image.
This could be similar to #1199.
Could we make this work ?
Workaround
Using a
does the job in this specific case, but I don't think it could be a permanent solution.
Additional context
I could privately provide you with a DICOM for tests purposes.
The text was updated successfully, but these errors were encountered: