knopkem / dicomweb-proxy

A proxy to translate between dicomweb and traditional dicom dimse services (PACS communication)
Other
66 stars 18 forks source link

Distorted US image #112

Closed GProg2 closed 1 year ago

GProg2 commented 1 year ago

When I view an ultrasound image the image is distorted. type (RGB)

GProg2 commented 1 year ago

anom

knopkem commented 1 year ago

Hi, this seems like a bug in the OHIF viewer. This project is only about proxying the requests between PACS and the Viewer and just bundles the viewer for ease of use. If you can sucessfully view this image with e.g. orthanc or dcm4chee and OHIF than please come back with it and upload an anonymized sample file.

GProg2 commented 1 year ago

Thank you, I tried as you told me with OHIF via ORTHANC. View the image correctly. I send you a test US. The name entered is not real.

dicom_US.zip

knopkem commented 1 year ago

ok, will have a look

knopkem commented 1 year ago

Hi, can you check the uploaded files. When testing with various viewers including OHIF with proxy they all look like below.

image

GProg2 commented 1 year ago

Thanks for your availability, but unfortunately by loading the same image with the ohif integrated in dicomweb-proxy I always keep having the same problem, I wonder at this point if it could depend on some different library between mine and your version. Can you give me some advice on how to reinstall and which versions did you use?

GProg2 commented 1 year ago

If it helps using: config.transferSyntax = '1.2.840.10008.1.2.4.80'; Error !!! unsupported value for 'Photometric Interpretation' (RGB)

instead with 1.2.840.10008.1.2 the image is distorted.

thaks

knopkem commented 1 year ago

Hi, I did notice the same error when first trying your images and could also only load it when changing TS. The error comes from the underlying dcmtk toolkit (not my work). I did have a look at the image properties and for me the RGB value seems to be correct, however I could not find any tool that was rendering the images in color, so I guess there is an underlying problem with those images. I used the latest version of this project (1.7.2) which comes with OHIV viewer 4.12.25 Upgrading depends how you got the code (either via npm, or git or file copy), so basically you just need to update the code to the latest from the main branch 'git fetch && git pull' (see 1 and 2) if you get a problem here) and perform 'npm install' again. Just make sure not to override your default.js. There is 2 ways to do this: 1) (preferred) Don't change default.js, but rather create a file called development.js (or production.js) and copy the content of your modified default.js. Those files are automatically overriding anything over default.js but are not part of the checked in source (so won't change if you update the repository). 2) Just stash your changes, update the branch and reapply them again:

Good luck

knopkem commented 1 year ago

I just released a new version 1.8.0 that comes with the latest OHIF viewer (v12.4.50).

GProg2 commented 1 year ago

thanks, I try it.

GProg2 commented 1 year ago

with 1.7.2 it works perfectly

with the version I had 1.6.4 and 1.8.0 it doesn't work.

Shuun26 commented 1 year ago

Hi! I'm having the same error, for some reason RGB images don't load properly, in this case it's a "CT" study.

image

Note: I tested it with 1.7.2, 1.8.0 and finally 1.8.1.

Also, I would like to comment, that if I use JSON to load the study, this error doesn't appear (But I don't like to load studies with JSON format, because 2D MPR does not work in JSON for some reason).

image

Update:

I finally solved it by adding "PlanarConfiguration" attribute.

What I did was modify "parseMeta" in this file I simply added these lines of code

image

And...

image

knopkem commented 1 year ago

Thanks for the info, will update the code.