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

fix(voi): stack viewport should prioritize image metadata for windowlevel and not persist #454

Merged
merged 9 commits into from
Mar 6, 2023

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Mar 2, 2023

Stack viewport was not updating the voi if the new image's voi was different. This PR will

  • let stack viewport each image set the voiRange if it is in the metadata
  • if the voi is set via outside set (e.g., setProperties) then the voi becomes a global voi for the whole stack
  • a resetProperties will make it back to the per image voi

Ground truth Test images are changed since now the metadata has more priority

address OHIF/Viewers#3190

@netlify
Copy link

netlify bot commented Mar 2, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 20cfe99
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/6402671fd0c8270008a8d26f
😎 Deploy Preview https://deploy-preview-454--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sedghi sedghi requested a review from wayfarer3130 March 2, 2023 22:11
@sedghi sedghi changed the title new voi setup for stack viewport fix(voi): stack viewport should not persist voi if it is different for instances Mar 2, 2023
Copy link
Collaborator

@wayfarer3130 wayfarer3130 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to see the change to remove CPU/GPU test everywhere.

@@ -2636,6 +2584,95 @@ class StackViewport extends Viewport implements IStackViewport {

return newImagePlaneModule;
}

private renderingPipelineFunctions = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sedghi sedghi changed the title fix(voi): stack viewport should not persist voi if it is different for instances fix(voi): stack viewport should prioritize image metadata for windowlevel and not persist Mar 3, 2023
@sedghi sedghi merged commit 420c812 into main Mar 6, 2023
@sedghi sedghi deleted the fix/voi-stack branch January 22, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants