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
at first I was surprised by the excellent compression ratio of 30:1 :-)
But then I've noticed that all images where empty when JPEG 2000 compression is selected:
However, JPEG-LS does work.
Snipped from server.log:
2017-01-26 16:11:37,088 INFO [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-5) DCM4CHEE<-albers(1) >> 1:C-STORE-RQ[pcid=41, prior=2
cuid=1.2.840.10008.5.1.4.1.1.2 - CT Image Storage
iuid=1.2.392.200036.9116.2.6.1.3268.2060189428.1481864242.64849 - ?
tsuid=1.2.840.10008.1.2.1 - Explicit VR Little Endian
2017-01-26 16:11:37,112 DEBUG [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-5) Command:
(0000,0002) UI [1.2.840.10008.5.1.4.1.1.2] AffectedSOPClassUID
(0000,0100) US [1] CommandField
(0000,0110) US [1] MessageID
(0000,0700) US [2] Priority
(0000,0800) US [1] CommandDataSetType
(0000,1000) UI [1.2.392.200036.9116.2.6.1.3268.2060189428.1481864242.64849] Af
2017-01-26 16:11:37,148 DEBUG [org.dcm4che3.imageio.codec.Transcoder] (EE-ManagedExecutorService-default-Thread-5) Compressor: com.sun.media.imageioimpl.plugins.jpeg2000.J2KImage
WriterCodecLib
2017-01-26 16:11:37,152 DEBUG [org.dcm4che3.imageio.codec.Transcoder] (EE-ManagedExecutorService-default-Thread-5) Verifier: com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReaderCodecLib
2017-01-26 16:11:42,272 DEBUG [org.dcm4che3.imageio.codec.Transcoder] (EE-ManagedExecutorService-default-Thread-5) Compressed frame #1 30.826:1 in 85 ms
2017-01-26 16:11:42,353 DEBUG [org.dcm4che3.imageio.codec.Transcoder] (EE-ManagedExecutorService-default-Thread-5) Verified compressed frame #1 in 81 ms - max pixel value error: 0
The used J2K codec is not maintained by dcm4che - anyway I will try to reproduce the issue, if you provide a test image which compression/decompression failed.
PS: I didn't test this with the dcm4che's official docker image but it might also be affected. So far each image is "empty" when I select JPEG2000-compression.
gunterze
changed the title
JPEG 2000 / JP2K compression broken in version 5.8.1
JPEG 2000 / JP2K compression broken if verification is enabled
Mar 9, 2017
The error only occurs if verification is enabled by dcmImageWriteParam: maxPixelValueError=0.0. It's caused by an unbalanced ImageInputStream.mark() in the setInput(Object input,..) method of com.sun.media.imageioimpl.plugins.jpeg2000/J2KImageReaderCodecLib, so a client cannot rely to restore previously marked stream position by ImageInputStream.reset(). Fixed by commit 51499c9
gunterze
added a commit
to dcm4che/dcm4che
that referenced
this issue
Mar 9, 2017
Hello,
at first I was surprised by the excellent compression ratio of 30:1 :-)
But then I've noticed that all images where empty when JPEG 2000 compression is selected:
However, JPEG-LS does work.
Snipped from
server.log
:Image-Metadata:
The archive runs on Ubuntu 16.04 following the official installation instructions.
Björn
The text was updated successfully, but these errors were encountered: