[Bug] Can not decode some JPEG 2000 Lossless compression Dicom image with @cornerstonejs/dicom-image-loader
Describe the Bug
The library @cornerstonejs/dicom-image-loader might could not decode some JPEG 2000 lossless compression Dicom image.
I got the these messages on worker:
Steps to Reproduce
- Open the image with cornerstone3d, I get the error as above. Link to dicom file: https://github.com/tuvm/dicoms/blob/main/dicom2_anon.dcm
- Try to use the cornerstone-wado-image-loader library, the image is decoded and display well.
The current behavior
I think there is an issue inside the decoder but I am not familiar with c++. Could you help to resolve it? Thanks.
The expected behavior
Hope the new lib can decode the image.
OS
Ubuntu
Node version
18.12.1
Browser
Chrome Version 111.0.5563.64 (Official Build) (64-bit)
Hi @sedghi, please help me check this issue. Thanks.
Try the latest codec and see if it works https://www.npmjs.com/package/@cornerstonejs/codec-openjpeg
I am using version 1.2.2, I see the new version 1.2.3 but it could not be download. Might be a publishing issue.
what error does it give
I can not download it. Just click to the version 1.2.3.
Yarn or npm still get ver 1.2.2 although dependency is set to 1.2.3
Successfull download ver 1.2.3 but it still could not decode the image.
Has anyone solved this problem? Version 1.2.4 still exists,
is this still an issue after Cornerstone3D 2.0 release?
Can you check the latest OHIF viewer, which now includes Cornerstone 3D 2.0?
Here are the migration guides:
Try OHIF locally: https://viewer-dev.ohif.org/localbasic
Try Cornerstone3D 2.0 locally: https://www.cornerstonejs.org/live-examples/local.html
still facing this issue not able to render the images. I tried in ohif and also in my custom build viewer.
@sedghi any work around or solution - or will upgrading to latest version helps
below is ohif. with folder upload from local