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] LUT/Image display issues #4684

Open
rikous91 opened this issue Jan 14, 2025 · 7 comments
Open

[Bug] LUT/Image display issues #4684

rikous91 opened this issue Jan 14, 2025 · 7 comments

Comments

@rikous91
Copy link

Describe the Bug

There seems to be an issue with the LUT or the decoder for the attached study. The first images do not load correctly, but the problem seems to resolve itself when scrolling, and the first images then load correctly.

Steps to Reproduce

  1. Download study
  2. Load it here
  3. Look at the first instances of the series.
  4. Scroll through the series.
  5. Look at the first instances again.

The current behavior

Image

Image

The expected behavior

Image

OS

Windows 10

Node version

18.16.0

Browser

Chrome 131.0.6778.109

@rikous91 rikous91 added the Awaiting Reproduction Can we reproduce the reported bug? label Jan 14, 2025
@rikous91 rikous91 changed the title [Bug] [Bug] LUT/Image display issues Jan 14, 2025
@sedghi
Copy link
Member

sedghi commented Jan 16, 2025

I think our rendering is fine, at least consistent with other viewers

weasis

Image

volview

Image

Notice that if you scroll the lut is fine

@sedghi sedghi removed the Awaiting Reproduction Can we reproduce the reported bug? label Jan 16, 2025
@rikous91
Copy link
Author

Sorry, try it here https://viewer-dev.ohif.org/local

At this point, the correct behavior can be seen here: https://v3-demo.ohif.org/local.

In the more recent beta versions, however, the images load correctly, but after scrolling, if you go back to the first ones, it seems to automatically apply a correction.

@sedghi
Copy link
Member

sedghi commented Jan 17, 2025

The previous (v3-demo) did not handle voi correctly, voi should be applied per image and not global. The fact that volview and weasis shows the same rendering make me think it is your data isssue

@rikous91
Copy link
Author

So, is it normal that at first the initial instances appear white, but then when you scroll and return to those same images, they’re no longer "white" and the LUT readjusts itself? I’m attaching a video to explain it better.

OHIF.Viewer.-.Google.Chrome.2025-01-23.09-12-36.online-video-cutter.com.mp4

@sedghi
Copy link
Member

sedghi commented Jan 23, 2025

what i mean is this data is not normal, as other viewers also have trouble rendering it

@haldawe2
Copy link

AnonimizedXA.zip

This is a dicom from an XA that shows the exact same behaviour as descrived above, excepct that when scrolling to other frames the screen keeps white (the test case uploaded is only one frame, to simplify our troubleshooting).

This file loads fine in Weasis, MicroDicom and in https://v3-demo.ohif.org/local as well, while in 3.9.3 shows white as well.

Is voi handled by Cornerstone or OHIF in this case? Can't seem to find where it is set for each image.

@haldawe2
Copy link

Found out when the Window Width is 1 (which should be working according to the standard I think), it inverts the colors of the image, in our test case changing the value to 2 solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants