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

[Bug] US - Blank Images and throws 'Error: The image does not have a complete color palette. R, G, and B palette data are required.' #4218

Open
tirta-ir opened this issue Jun 10, 2024 · 2 comments
Assignees
Labels
Bug Verified Bug reported, reproducible, and verified.

Comments

@tirta-ir
Copy link

tirta-ir commented Jun 10, 2024

Describe the Bug

Hi, I am still encountering the same error as in my previous issue #4075. My US (multi-frame) DICOM images with PALETTE COLOR photometric interpretation still cannot be viewed, even though I am using the latest master branch version (3.9.38) as you said it was fixed in dev.

Steps to Reproduce

  1. Download the exported Ultrasound (US) DICOM images from this link (https://drive.google.com/file/d/17xuICqMgf5v4cosGWRuNlt7R9n4Kq8aS/view?usp=sharing).
  2. Upload the DICOM images to OHIF using the latest master branch version (3.9.38).
  3. View the DICOM images using the basic viewer.

The current behavior

The cornerstone in the basic viewer still returns a blank screen. For example, when using the version 3.9.38, it throws this error.

image

fetchPaletteColorLookupTableData.js:70 
 No data found for [object ArrayBuffer] palette
convertPALETTECOLOR.ts:59 
 Uncaught (in promise) 

Error: The image does not have a complete color palette. R, G, and B palette data are required.
    at convertPALETTECOLOR.ts:59:13
DataArray.js:518 
 Uncaught (in promise) 

RangeError: model.size is not a multiple of model.numberOfComponents
    at p (DataArray.js:518:11)
    at Object.n [as newInstance] (macros2.js:917:5)
    at ue.createVTKImageData (StackViewport.ts:1659:25)
    at ue._createVTKImageData (StackViewport.ts:1690:28)
    at ue._updateActorToDisplayImageId (StackViewport.ts:2352:10)
    at ue.renderImageObject (StackViewport.ts:2171:14)
    at renderToCanvasGPU.ts:178:36
    at new Promise (<anonymous>)
    at oe (renderToCanvasGPU.ts:101:10)
    at u (loadImageToCanvas.ts:146:7)

The expected behavior

The DICOM should be displayed like this (OHIFv2 or other DICOM viewers like the MedDream demo).

OHIFv2 Viewer
image

MedDream Viewer
image

OS

Ubuntu 22.04.3 LTS

Node version

20.12.2

Browser

Chrome 123.0.6312.122 (Official Build) (64-bit)

@tirta-ir tirta-ir added the Awaiting Reproduction Can we reproduce the reported bug? label Jun 10, 2024
@sedghi
Copy link
Member

sedghi commented Jun 14, 2024

So i will close the other issue since you opened a new one

@sedghi sedghi added Bug Verified Bug reported, reproducible, and verified. and removed Awaiting Reproduction Can we reproduce the reported bug? labels Jun 14, 2024
@sedghi sedghi self-assigned this Jun 14, 2024
@tirta-ir
Copy link
Author

I got additional information for this issue. It might be that the issue is related to how OHIF or Cornerstone interprets the Palette Color metadata. The LUT handling isn't correctly implemented, resulting in a blank screen.

I attempted to reproduce the issue using another ultrasound image from [these sample], which also uses palette color interpretation for US images, and encountered the same blank screen.

However, when I converted the DICOM file using my Python script to YBR then opened it on OHIF, it displayed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Verified Bug reported, reproducible, and verified.
Projects
None yet
Development

No branches or pull requests

2 participants