Feature #750
openJPEG-LS encoded image that cannot be decoded with dcmjpls
0%
Description
I have received a sample image encoded in JPEG-LS that cannot be decoded with DCMTK.
- dcmdjpls reports an error
- the old experimental implementation based on HP LOCO hangs while decoding
The image apparently comes from a PACS installation at a veterinary hospital.
The image can be decoded and displayed using the PACS viewer from J4CARE.
We should check whether this is a fault in the image or a bug in the JPEG-LS
decoder, and whether it would be easily possible to add a workaround for this
bug since apparently such images are used somewhere in the field.
The sample image (compressed and decoded by J4CARE) is available in
/share/dicom/contrib/20170406-j4care-jpeg-ls
Updated by Marco Eichelberg over 8 years ago
- Tracker changed from Bug to Feature
Here's a small program that shows how to fix this issue, which is apparently
a well-known bug in the Java Advanced Imaging (JAI) JPEG-LS implementation:
https://github.com/malaterre/GDCM/blob/master/Examples/Cxx/FixJAIBugJPEGLS.cxx
Thanks to Mathieu Malaterre for this information!