-
Notifications
You must be signed in to change notification settings - Fork 324
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] Prescale should be enabled by default #887
Comments
would you mind creating a PR for this? |
I think this has been fixed in the |
I would like to try - but since #990 unfortunately loading images through |
@sedghi I have just tried on 1.44.2 but the issue remains there if |
@sedghi I can look into this one and #886 further now that I'm almost on the latest release again. I could use some additional guidance, though, in particular on two topics:
|
This is now enabled automatically on main, and I can confirm this issue is resolved in Cornerstone3D 2.0. |
Describe the Bug
As suggested in #832 by @sedghi, enabling prescaling fixed window level issues when loading a stack of images through wadouri. Their comment also mentions that it would make sense to have this enabled by default. I am not sure what the consequences of this would be so I'm hesitant to create the PR myself, but didn't want this to be forgotten, hence this issue.
Steps to Reproduce
A reproduction is available here: https://sjorsgielen.nl/cs3d.zip. It's pretty large since it contains a 90MB volume, so Github doesn't allow me to upload it directly. For future record, here is a zip file containing everything except the volume:
cs3d.zip
First, disable SharedArrayBuffer in the variables at the top of
src/main.ts
because of #886.Run yarn install and yarn dev to start the webserver, then browse to the indicated port.
The current behavior
In the default window level, the image is rendered incorrectly. The window level must be set exceedingly high for the image to render normally.
By setting
preScale: { enabled: true }
in the call tocornerstoneDICOMImageLoader.wadouri.loadImage
, the image is rendered normally if no explicit window level is set.The expected behavior
No specific flags need to be passed for the image to render normally.
OS
macOS 14.0
Node version
20.8.1
Browser
Safari 17.0
The text was updated successfully, but these errors were encountered: