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] WindowLevel resets when direction changes (discussed in OHIF Office Hours meeting) #1816

Closed
julianlinaress opened this issue Feb 6, 2025 · 2 comments

Comments

@julianlinaress
Copy link
Contributor

Describe the Bug

So more than once I've come across series in which direction of the image changes between slices, which maybe is not supposed to happen (video for example). Looking at the source code in StackViewport.ts I see that _updateActorToDisplayImageId(image) is used to

"check if we can reuse the vtkImageData that is in place ... If we cannot reuse it, create a new actor, remove the old one, and reset the camera"

And one of the data atributes used to compare is direction, which of course changes in this case for many slices, and ends up resetting the WindowLevel values. I assume this is the desired behaviour but what would be a good way to go around it? Maybe some sort of viewport configuration?

anonymized_mr.zip
Note: Serie "Axial t1_qtse" changes direction between slices The other one is for reference

Recording.2025-02-06.143038.-.Trim.mp4

Steps to Reproduce

  1. Change window/level
  2. Stack scroll

The current behavior

Window level resets when direction changes

The expected behavior

Be able to avoid window/level reset

OS

Windows 11

Node version

v22.11.0

Browser

Chrome 133.0.6943.53

@sedghi
Copy link
Member

sedghi commented Feb 19, 2025

This is fixed now, try again

@sedghi sedghi closed this as completed Feb 19, 2025
@julianlinaress
Copy link
Contributor Author

Fixed indeed, thank you!

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

No branches or pull requests

2 participants