I have been using Orthanc for some time along with OHIF viewer, all works well. My current configuration is, I pass JSON file which has metadata along with url for the instance.
I decided to try Dicom-web but somehow my images are all gibberish. I approached someone at OHIF and he suggested that I should check my Orthanc configuration, maybe something is missing.
Any idea what could be the issue?
Attached are results of same study pulled via Stone-Web and Osimis-Viewer, both works well. Also, attached same study pulled via OHIF which has gibberish result.
My current Orthanc version is 1.9.7, Dicom-web 1.7, GDCM 1.4
Once I experienced something similar. Been a long time and I’m recounting from memory. These garbled images are kind of preview-ish images browsers display while loading the images.
Maybe, just maybe, there was a hiccup somewhere, be it network, database, etc. Clearing cache and reloading the page should “solve” the problem.
Yes, following your steps does produce a sample.jpg file.
I am perplex now. I am using pretty much both OHIF and Orthanc out of box and I don’t get proper image if I use DicomWeb.
I don’t get any errors on Chrome Console for javascript nor on Network pane. Any suggestion where I should look or what could I do to pin point the issue. Thank you so much!
Following is my server configuration in OHIF for DicomWeb.
Maybe this issue only appears on some specific images from your sample series. You should try to narrow down such specific images.
As a better solution, submit your sample series to the OHIF support team who could help you in this task. Indeed, as far as this forum is concerned, we have not the knowledge about OHIF debugging.
All the images with following Meta Header produces Gibberish images.
Meta header
0002,0010 (TransferSyntaxUID): 1.2.840.10008.1.2.4.90
I was asked by OHIF member to make sure the response from Orthanc is in the correct compression and that Orthanc is not only serving part of the bytestream?
I have an interesting finding. I am sure you can tell by now that I am serious about this bug :).
I used the Cornerstone example to load my single image from MRI. Then I used the same image using RadiAnt. Files are attached for reference.
You could see this test is without Orthanc involvement. The issue here seems to be in cornerstone routine or maybe the way image is compressed to jp2k.
If for instance the issue is in the compression then why RadiAnt would work and also why direct URI to OHIF would work?
I don’t have the answer to this. All I know that when I use Dicomweb to OHIF with jp2k transfer syntax I get gibberish image(s).
I think I found what causes the issue. We receive studies which are pre-compressed in jp2k before we store them in Orthanc. Those which are compressed via fo-dicom produce gibberish images, only when accessed through DicomWeb protocol. Meanwhile those which are compressed via Gdcm/DCMTK do not produce gibberish images when accessed through DicomWeb protocol.
I have privately sent those studies to you because when I anonymize, ImplementationVersionName changes from fo-dicom 4.0.1 to OFFIS_DCMTK_366 and I wanted to keep things original.
What perplexes me here is that studies which are compressed via fo-dicom produce normal images in OHIF if pulled as a JSON launch, which is my current way of accessing studies. In fact, I use RadiAnt and Weasis on a regular basis on my desktop to view fo-dicom compressed images and they appear to be normal in both the tools.
One resource at OHIF suspect that the metadata I am getting from Orthanc may not be correctly matching the image that OHIF is trying to decide. I am using WADO-RS.
He also suspects that maybe the response from Orthanc is not in the correct compression or its only serving part of the bytestream.
I do not know the answer to these.
What I do know now is what causes the issue. Going forward I can store all the studies compressed only in Gdcm instead of fo-dicom. But how do I fix my history where studies are compressed in jp2k via fo-dicom?
I confirm that I’ve received your private message containing 2 links to OHIF with problematic images.
By looking at the console of my Web browser, I confirm that I can see that OHIF does not use WADO as you wrote in your first message, but the DICOMweb protocol (more precisely, WADO-RS).
However, I am not a OHIF developer, so I cannot trace down the issue, that most likely occurs within the JavaScript package used by OHIF to decode the JPEG2k images.
Please ask your contact at OHIF to generate me a minimal working example with a problematic DICOMweb WADO-RS request, indicating what Orthanc actually returns versus what OHIF expects. This minimal working example should only use “curl”, not an actual deployment of OHIF as you pointed me to.
Without this information, I am unable to provide any further guidance.