-
Notifications
You must be signed in to change notification settings - Fork 314
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
pixel normalization #1135
base: main
Are you sure you want to change the base?
pixel normalization #1135
Conversation
✅ Deploy Preview for cornerstone-3d-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please provide context, what was the issue and how are you solving it with your PR? basically please fill in the template for the PR and provide test steps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request. I apologize for the delay; I was away, but I'm now back to contributing to open source more actively.
I don't think your approach is correct. The minimum value can be negative, and there's no issue with that. The problem lies in the upper and lower voi ranges being the same, preventing setVOI
from grabbing the correct range from the data
I'm willing to merge your pull request if you implement it like this.
In case if min and max values negative? I mean all pixels are negative |
@sedghi any update on this? |
I'm not sure if this is the right direction |
Context
Describe the Bug
In case if we are using CPU rendering it works fine, but in case GPU this image inverted.
Please see attached anonimized file
DICOM sample Issue with Invertion.zip
Steps to Reproduce
run GPU rendering
run CPU rendering
The current behavior
Image inverted and not rendered in proper way
The expected behavior
Image should be rendered in the correct way and the result should not depend on the rendering type.
OS
Windows 10, Mac os
Node version
v18.14.1
Browser
Chrome 120.0.6099.131
Changes & Results
Such images have a pixel range of [negative, negative]. Therefore, we are modifying the pixels per LUT to normal values [0, 255]. After these manipulations, everything renders fine.
Testing
Try to open stackViewport with this series using GPU rendering:
DICOM.sample.Issue.with.Invertion (1).zip