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 Colorbar for PET behaves unexpectedly #4743

Open
JoostJM opened this issue Jan 29, 2025 · 1 comment
Open

[Bug] Viewport Colorbar for PET behaves unexpectedly #4743

JoostJM opened this issue Jan 29, 2025 · 1 comment
Labels
Bugs Bug reported, reproducible, and verified.

Comments

@JoostJM
Copy link
Contributor

JoostJM commented Jan 29, 2025

Describe the Bug

When loading PET data, left-mouse click Window-Level is limited to only scale the values (i.e. it always starts from 0), i.e. the window width is updated and window center kept at window width / 2.
However, when showing the colorbar in the viewport and dragging on there only allows to change the center, and not the width. This means that you can scale the image that way, and the colorbar doesn't start from 0 anymore.

Steps to Reproduce

  1. Load the PET-data case in OHIF viewer.
  2. Show the colormap on the PET data (e.g. the cornal MIP or any of the PET viewports).
  3. Try and change the window level by click+dragging on the image (works as expected).
  4. Try and change the window level by click+dragging on the colorbar (works exactly opposite).

The current behavior

See steps to reproduce. Color bar behaviour is exactly opposite from window-level on the image

The expected behavior

Window-level on the colorbar should follow the behaviour of the window-level tool on the image.

OS

Linux 22.04.4 LTS

Node version

20.11.0

Browser

Chrome 122

@JoostJM JoostJM added the Awaiting Reproduction Can we reproduce the reported bug? label Jan 29, 2025
Copy link
Member

sedghi commented Feb 4, 2025

Yeah I see what you mean, we should not allow step number 4

@sedghi sedghi removed the Awaiting Reproduction Can we reproduce the reported bug? label Feb 4, 2025
@sedghi sedghi added the Bugs Bug reported, reproducible, and verified. label Feb 4, 2025 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bug reported, reproducible, and verified.
Projects
None yet
Development

No branches or pull requests

2 participants