-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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] SEG/RTSTRUCT changes W/L after loading #3410
Comments
I believe this is by design. At first (before loading the SEG or RT) the viewports are StackViewport and in Stack settings we apply the per-image windowlevel, in case of the Brain MR 95/35, and after the SEG is loaded a volume viewport is mounted (since we have 3D segmentations), and for the window level the full volume range is used for calculation of the window level. |
Ok so here is what happens We can't really do a range on full volume since we don't have full scalarData to get the min and max, so we are limited to grabbing the range from the middle slice.
There are two things that can/should make this better
|
Though there was an issue for PT which is solved after this https://github.com/cornerstonejs/cornerstone3D/pull/676/files |
Number one is already implemented |
Thanks for clarifying. Sorry, for the present implementation of number one on demo, it's only keeping the modified W/L for the viewport that has the SEG loaded, and not any other viewports I had opened with modified W/L. Is it possible to extend the keeping of W/L for the other viewports as well? |
Unfortunatelly I don't follow what you are saying, the state sync bw stack and volume viewport is already implemented in master branch you can see here OHIF-Viewer.webm |
I'm working with the study with multiple series without entering MPR: https://v3-demo.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785 So I have toggled the W/L for each viewport. And then as soon as I load the SEG into Viewport C (since series 5 is the series the SEG was drawn on), the W/L for viewport C has been kept (like you said), but viewports A and B have defaulted again. Viewports A and B should be kept as the user had modified them |
I see now what you mean, ok let me investigate |
PR #3560 |
Describe the Bug
W/L changes after loading a SEG
Steps to Reproduce
Open a study on OHIFv3 demo: https://v3-demo.ohif.org/viewer?StudyInstanceUIDs=1.3.12.2.1107.5.2.32.35162.30000015050317233592200000046
Note the auto W/L=95/35
Drag the SEG into the viewport
Previous W/L has been undone to become W/L=689/315
Open a study on OHIFv3 demo: https://v3-demo.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.3671.4754.298665348758363466150039312520
Note the auto W/L in each viewport: A=1048/524; B=3644/1822; C=173/86; D=2400/1300.
Drag the T2 Weighted Axial SEG into viewport A
Previous W/L for viewports A and C have been undone.
The current behavior
W/L changes after loading a SEG
The expected behavior
W/L should not change after loading a SEG
OS
Windows 10
Node version
16.14.0
Browser
Chrome 111.0.0
The text was updated successfully, but these errors were encountered: