Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error displaying some palette color images #1350

Closed
jap1968 opened this issue Jan 7, 2020 · 2 comments
Closed

Error displaying some palette color images #1350

jap1968 opened this issue Jan 7, 2020 · 2 comments
Assignees

Comments

@jap1968
Copy link

jap1968 commented Jan 7, 2020

Hello,

I am trying to display ultrasound images using the OHIF viewer (tested with the dockerHub OHIF images, v3.3.4.8766 and v3.3.5.8808)

The instances having the tag Photometric Interpretation (0028,0004) = "PALETTE COLOR" are not properly displayed in OHIF (an error is shown in the browser console, *1) whereas the Cornerstone library is able to display them properly (*2).

(*1) OHIF error message: "ReferenceError: paletteColorCache is not defined"

app.bundle.861010e2bb8a74366fd1.js:35496 The provided colorLUT only provides 0 labels, whereas segmentsPerLabelmap is set to 65535. Autogenerating the rest.
 ...
retrieveTimepoints
app.bundle.861010e2bb8a74366fd1.js:130939 Timepoint data retrieval
app.bundle.861010e2bb8a74366fd1.js:83604 search series of study 1.2.840.113543.6.6.3.4.625453587242406354163128494886820561559.1
app.bundle.861010e2bb8a74366fd1.js:83634 retrieve metadata of series 1.2.840.113543.6.6.3.4.325453587242406354163128494886820561559.1
app.bundle.861010e2bb8a74366fd1.js:134538 ReferenceError: paletteColorCache is not defined
    at app.bundle.861010e2bb8a74366fd1.js:144325
    at new Promise (<anonymous>)
    at _callee3$ (app.bundle.861010e2bb8a74366fd1.js:144322)
    at tryCatch (app.bundle.861010e2bb8a74366fd1.js:196255)
    at Generator.invoke [as _invoke] (app.bundle.861010e2bb8a74366fd1.js:196481)
    at Generator.prototype.<computed> [as next] (app.bundle.861010e2bb8a74366fd1.js:196307)
    at asyncGeneratorStep (app.bundle.861010e2bb8a74366fd1.js:143977)
    at _next (app.bundle.861010e2bb8a74366fd1.js:143979)
    at app.bundle.861010e2bb8a74366fd1.js:143979
    at new Promise (<anonymous>)

(*2) The image is properly displayed with the Cornerstone library. It has been tested here:
https://rawgit.com/cornerstonejs/cornerstoneWADOImageLoader/master/examples/dicomfile/index.html

The issue has been also reported on the cornerstone-platform topic in Google Groups:
https://groups.google.com/forum/#!topic/cornerstone-platform/5bBkHEVIJ_c
There, you can find a sample DICOM file attached showing this problem.

Congratulations for the great work!

@dannyrb dannyrb self-assigned this Jan 7, 2020
@dannyrb dannyrb added this to In progress in Active Development Jan 8, 2020
@jap1968
Copy link
Author

jap1968 commented Jan 9, 2020

Sample DICOM file to reproduce the problem
us_mf_palette_color.zip

@jap1968
Copy link
Author

jap1968 commented Jan 30, 2020

Congratulations!!!

I have just tested this kind of images with OHIF/viewer v3.4.8.9438 and they are properly displayed.
Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

4 participants