cornerstonejs / cornerstoneWADOImageLoader

[DEPRECATED] DICOM WADO Image Loader for the cornerstone library
MIT License
280 stars 267 forks source link

Issue with Loading Compressed DX Images #535

Open emelalkim opened 7 months ago

emelalkim commented 7 months ago

Dear Team, We have encountered a critical issue related to loading compressed DX images using cornerstone. Upon investigation, we have observed the following error messages and behavior:

  1. Data Specifications:

    • Compressed DX images
  2. Error Messages:

    • Failed to decode tile error message
    • Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0
  3. Related Posts/Issues: We have come across a similar problem in a forum post with no apparent solution. Also, there is this open issue but it doesn't mention DX or compressed images

  4. Specific Behavior:

    • Behavior in ePAD:
      Specific images seem to trigger this behavior. If we attempt to load a particular DX image first (sample data), any subsequent DX image loaded ends up displaying all black. Opening a DX image that loads properly first, and then opening the problematic DX image seems to resolve the issue temporarily. Both series and all images of the series are displayed, but the problematic series appears in inverted mode.
    • Behavior in OHIF We were also able to partly reproduce the problem in OHIF local version. The sample data can load only one of the images. The other two throws "Failed to decode tile" error message
  5. Sample Data: 3 Compressed DX images

We're actively investigating. Any insights and pointers are appreciated.