-
Notifications
You must be signed in to change notification settings - Fork 298
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
feat(3d from 4d): 3D image generation from 4D #502
Conversation
✅ Deploy Preview for cornerstone-3d-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
f44942c
to
68d4649
Compare
…n operations without having to refresh the page
6c99e80
to
5c8174a
Compare
packages/tools/src/utilities/dynamicVolume/generateImageFromTimeData.ts
Outdated
Show resolved
Hide resolved
packages/tools/src/utilities/dynamicVolume/generateImageFromTimeData.ts
Outdated
Show resolved
Hide resolved
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.
see my comments
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.
Looks great. This is a great contribution, thanks a lot!
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