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(registration): example (poc) #863

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lscoder
Copy link
Collaborator

@lscoder lscoder commented Nov 1, 2023

This PR is a draft (will not be merged) that uses ITK-elastix for the registration of two volumes. https://www.npmjs.com/package/@itk-wasm/elastix

The algorithm seems to run in a webworker by design and it is a mix of GPU and CPU processings (mostly CPU as we can see)

We experimented with various types of registration parameters, and it seems to have decent results so far.

CleanShot 2023-11-02 at 17 00 32

CleanShot 2023-11-02 at 17 00 42

Try here

Run time

The run time seems to be directly related to the number of resolutions, number of iterations and the size of data.

Todo

  • See if there are any parameter that can speed up the registration process and/or reduce the amount of memory consumed by the wasm compared to Slicer (eg: Slicer uses 2.5GB and WASM 4GB for the same 300 slices dataset). There are more than 100 parameter map files in Slicer that may help. Go to Slicer/Elastix module > Advanced > Registration Presets and click on "Show database folder"

@lscoder lscoder requested a review from sedghi November 1, 2023 19:10
@lscoder lscoder self-assigned this Nov 1, 2023
Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit fe7e58a
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/65440b724720d10008cd5cc7
😎 Deploy Preview https://deploy-preview-863--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 configuration.

packages/core/package.json Outdated Show resolved Hide resolved
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

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