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

feat(3d from 4d): 3D image generation from 4D #502

Merged
merged 21 commits into from
Mar 28, 2023

Conversation

NeilMacPhee
Copy link
Contributor

@NeilMacPhee NeilMacPhee commented Mar 22, 2023

Summary

This feature will allow users to choose between three methods to generate a 3D volume from 4D data: subtract, average, or sum. The "subtract" method works with two time frames and will subtract the values of each voxel in the 4D data from the corresponding voxel in the previous frame. The "average" method will take the average of the values of each voxel in the 4D data over time. The "sum" method will add the values of each voxel in the 4D data over time. The output scalar array can then be used to create a 3D volume.

"generateImageFromTimeData" allows the user to specify which time frames to use for generating the scalar data.

Demo

3DimageGeneration

@netlify
Copy link

netlify bot commented Mar 22, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit bcc4aab
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/64234dfe94e4680008a45262
😎 Deploy Preview https://deploy-preview-502--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.

bionoone pushed a commit to bionoone/cornerstone3D-beta that referenced this pull request Mar 27, 2023
@NeilMacPhee NeilMacPhee changed the title WIP: Feat/3d image generation from 4D Feat: 3D image generation from 4D Mar 28, 2023
Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

see my comments

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

Looks great. This is a great contribution, thanks a lot!

@sedghi sedghi changed the title Feat: 3D image generation from 4D feat(3d from 4d): 3D image generation from 4D Mar 28, 2023
@sedghi sedghi merged commit 9217691 into cornerstonejs:main Mar 28, 2023
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