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] Viewport Properties are reseted when Different images are loaded on the same stack viewport #4117

Open
kushgadhvi16 opened this issue May 10, 2024 · 0 comments
Labels
Awaiting Reproduction Can we reproduce the reported bug?

Comments

@kushgadhvi16
Copy link

Describe the Bug

When loading the attached MR image in OHIF with the useNorm16Texture option set to True, inconsistencies arise due to different data types across slices. Specifically, some images are of the data type UInt16, while others are Int16. This difference in data types causes the application to treat these as distinct images, resulting in the reset of viewport properties such as Zoom, Pan, and VOI settings upon scrolling through slices.
1OK3XA55.zip

OHIF Office Notes:-
Q: Preventing reset of viewport properties when different images are loaded on the same stack viewport.
A: One option is to split the images into separate display sets so that they are consistent within the display set.

For the zoom/pan data, the recent changes for getViewPresentation should help this, although it may not have gotten included at the right level. Once that has been merged to OHIF if it is still an issue, could you create an issue for this?

For the window level, it should be possible to preserve that VOI as long as the basic range between images is similar. The problem currently is that a new actor is required because of differences in rendering, and that causes the reset to occur. The fix is to re-apply the view presentation.

Steps to Reproduce

  1. Load the attached MR image in OHIF with useNorm16Texture set to True in default.js.
  2. Scroll through the slice.
  3. Observe that Zoom, Pan, and VOI settings

The current behavior

Zoom, Pan , VOI and other viewport properties are reset

The expected behavior

Zoom, Pan , VOI and other viewport properties should be maintained when scrolling through the slices.

OS

macOS 14.4.1

Node version

18.12.1

Browser

Chrome

@kushgadhvi16 kushgadhvi16 added the Awaiting Reproduction Can we reproduce the reported bug? label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?
Projects
None yet
Development

No branches or pull requests

1 participant