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] Colors cannot be displayed correctly #1657

Open
strange1015 opened this issue Dec 3, 2024 · 1 comment
Open

[Bug] Colors cannot be displayed correctly #1657

strange1015 opened this issue Dec 3, 2024 · 1 comment
Labels
bug verified Something isn't working, verified by maintainers

Comments

@strange1015
Copy link

Describe the Bug

DICOM file tag item Photometric Interpretation value is YBR_RCT. Abnormal color display in Cornerstone3D but normal display in old Cornerstone. Is it a problem with the DICOM metadata, a library bug, or is there a need for some configuration?

Steps to Reproduce

Use the website https://www.cornerstonejs.org/live-examples/local.html to upload the file https://github.com/strange1015/OHIFViewers/blob/master/53c908200ec34d6e8d4b56ce757f9fc2.dcm.

The current behavior

nocorrect

The expected behavior

correct
Use old cornerstone can display correctly.

OS

windows10

Node version

10.19.0

Browser

Chrome

Copy link
Member

sedghi commented Dec 4, 2024

Hmm, it seems the scalar data is a float, and we are casting it to an int or something similar.

@sedghi sedghi added the bug verified Something isn't working, verified by maintainers label Dec 4, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug verified Something isn't working, verified by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants