cornerstone3D icon indicating copy to clipboard operation
cornerstone3D copied to clipboard

[Bug] Can not decode some JPEG 2000 Lossless compression Dicom image with @cornerstonejs/dicom-image-loader

Open tuvm opened this issue 1 year ago • 7 comments

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: image

Steps to Reproduce

  1. 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
  2. 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)

tuvm avatar Feb 02 '24 03:02 tuvm

Hi @sedghi, please help me check this issue. Thanks.

tuvm avatar Feb 05 '24 04:02 tuvm

Try the latest codec and see if it works https://www.npmjs.com/package/@cornerstonejs/codec-openjpeg

sedghi avatar Feb 20 '24 17:02 sedghi

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.

tuvm avatar Feb 21 '24 02:02 tuvm

what error does it give

sedghi avatar Feb 21 '24 03:02 sedghi

image 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

tuvm avatar Feb 21 '24 04:02 tuvm

Successfull download ver 1.2.3 but it still could not decode the image. image

tuvm avatar Feb 21 '24 05:02 tuvm

image Has anyone solved this problem? Version 1.2.4 still exists,

aodong8808 avatar Jul 01 '24 03:07 aodong8808

is this still an issue after Cornerstone3D 2.0 release?

sedghi avatar Nov 06 '24 19:11 sedghi

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

https://docs.ohif.org/migration-guide/3p8-to-3p9/

sedghi avatar Nov 14 '24 22:11 sedghi

Image

still facing this issue not able to render the images. I tried in ohif and also in my custom build viewer.

Image

@sedghi any work around or solution - or will upgrading to latest version helps

below is ohif. with folder upload from local

Image

AlbinManentia avatar May 27 '25 06:05 AlbinManentia