Hello,
Details of Issue
I am sending ultrasound images to Orthanc from the ultrasound machine, which is currently set to send the images using JPEG lossy compression. The ImageType tag (0008,0008) shows DERIVED when using this compression method, but when I use JPEG2000 lossy compression, it provides ORIGINAL\PRIMARY\ABDOMINAL\0001\GEMSSINGLEFRAME\GEMSMGCOUNT1. Unfortunately, I can’t get Stone Viewer or the “preview” button in Orthanc to display the JPEG2000 images, but they display fine in OHIF.
The GDCM plugin has been enabled. Prior to enabling the plugin, these are the 4 errors that would get logged when attempting to preview an image. After enabling the GDCM plugin, the first OrthancException error is no longer displayed, but the other three errors (“DCMTK decoder cannot decode…” and two “Cannot decode image using GDCM…”) remain.
Any thoughts as to what I may be missing in order to get these JPEG2000 images to display?
|2024/08/20 15:46:40|stderr|E0820 20:46:40.074004 HTTP-28 PluginsManager.cpp:153] (ImageController) Orthanc::OrthancException 23/500 Incompatible format of the images|
|---|---|---|
|2024/08/20 15:46:40|stderr|E0820 20:46:40.073837 HTTP-28 OrthancException.cpp:61] Not implemented yet: The built-in DCMTK decoder cannot decode some DICOM instance whose transfer syntax is: 1.2.840.10008.1.2.4.91|
|2024/08/20 15:46:40|stderr|E0820 20:46:40.073358 HTTP-28 PluginsManager.cpp:153] Cannot decode image using GDCM: GDCM cannot change the photometric interpretation|
|2024/08/20 15:46:40|stderr|W0820 20:46:40.072842 HTTP-28 PluginsManager.cpp:157] Cannot decode image using GDCM: GDCM cannot change the photometric interpretation|
Background
We currently administer an ultrasound screening using several different exam applications within the ultrasound machine (abdominal, small parts, vascular, cardiology, gynecology). In the example above, the abdominal application is used and listed in the ImageType DICOM tag. I have a Python script set up so as soon as Orthanc receives the Structured Report, my EHR calls the API and parses the SR into my EHR database. Once the SR is parsed, it retrieves all of the images via the API using the “preview” URL. All of the images fall into a single album, but I would like to use the ImageType tag (0008,0008) to automatically separate them into their respective exam application albums so we don’t have to sort through the entire set of images.
Since Orthanc will not “preview” these JPEG2000 images, and since the JPEG compression does not include the necessary ImageType tag I need, I’m stuck. The compression being performed by the machine instead of by Orthanc is important because we are administering these exams remotely where we utilize a mobile hotspot for the data transfer. Minimizing the file size is essential to ensuring a smooth process so the spooler doesn’t get backlogged. An uncompressed raw image is 7MB; JPEG2000 and JPEG lossless are approximately 600KB; JPEG2000 50% Quality and JPEG 50% Quality are approximately 90KB.
The PhotometricInterpretation for uncompressed is RGB; JPEG2000 is YBR_ICT; and JPEG is YBR_FULL_422.