Project

General

Profile

Actions

Feature #750

open

JPEG-LS encoded image that cannot be decoded with dcmjpls

Added by Marco Eichelberg over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Library
Target version:
-
Start date:
2017-04-07
Due date:
% Done:

0%

Estimated time:
Module:
dcmjpls, dcmloco
Operating System:
Compiler:

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

Actions #1

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!

Actions

Also available in: Atom PDF