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(stackviewport): swap image row and column pixel spacing #561

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Apr 17, 2023

This commit swaps image row and column pixel spacing of StackViewport in RenderingEngine while applying an epsilon comparison for float numbers comparison. It also adds Zoom tool to the StackScrollToolMouseWheelTool_test.js test script to scroll through stacks of images. Finally, it adjusts the test image data and updates the yarn.lock file to include codec-openjph 2.4.2 package.

fixes #548

This commit swaps image row and column pixel spacing of `StackViewport` in `RenderingEngine` while applying an epsilon comparison for float numbers comparison. It also adds Zoom tool to the `StackScrollToolMouseWheelTool_test.js` test script to scroll through stacks of images. Finally, it adjusts the test image data and updates the `yarn.lock` file to include codec-openjph 2.4.2 package.
@netlify
Copy link

netlify bot commented Apr 17, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 14374d5
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/643dbb236b440e0008f64115
😎 Deploy Preview https://deploy-preview-561--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.

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.

LGTM

@sedghi sedghi merged commit aede776 into main Apr 18, 2023
@RoyWiggins
Copy link

a thought- should lines 1546 and 1548 also be swapped?

@sedghi
Copy link
Member Author

sedghi commented Apr 18, 2023

you are right

wayfarer3130 pushed a commit that referenced this pull request Apr 18, 2023
This commit swaps image row and column pixel spacing of `StackViewport` in `RenderingEngine` while applying an epsilon comparison for float numbers comparison. It also adds Zoom tool to the `StackScrollToolMouseWheelTool_test.js` test script to scroll through stacks of images. Finally, it adjusts the test image data and updates the `yarn.lock` file to include codec-openjph 2.4.2 package.
RoyWiggins added a commit to RoyWiggins/cornerstone3D-beta that referenced this pull request Apr 28, 2023
…onejs#561)

This commit swaps image row and column pixel spacing of `StackViewport` in `RenderingEngine` while applying an epsilon comparison for float numbers comparison. It also adds Zoom tool to the `StackScrollToolMouseWheelTool_test.js` test script to scroll through stacks of images. Finally, it adjusts the test image data and updates the `yarn.lock` file to include codec-openjph 2.4.2 package.
@sedghi sedghi deleted the fix/non-square-spacing branch August 2, 2023 20:32
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.

Scrolling a stack with non-square PixelSpacing resets the camera
3 participants