ENH: Add ngff-zarr multi-resolution registration example#375
Open
ENH: Add ngff-zarr multi-resolution registration example#375
Conversation
Add Example 23 demonstrating a workflow that combines ngff-zarr multi-resolution image pyramids with ITKElastix registration: - Convert ITK images to ngff-zarr Multiscales via to_multiscales - Register at a coarse resolution (rigid + affine + bspline) - Convert Elastix results to itk.CompositeTransform - Apply the transform at full resolution in parallel using dask.array.map_blocks with itk.resample_image_filter Uses itk_image_to_ngff_image and ngff_image_to_itk_image to bridge between ITK and ngff-zarr data representations.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Collaborator
|
@thewtex Please do By the way, what does "9566-example-demonstr" mean? |
N-Dekker
reviewed
Mar 9, 2026
| "source": [ | ||
| "import itk\n", | ||
| "import numpy as np\n", | ||
| "import dask.array as da\n", |
Collaborator
There was a problem hiding this comment.
Should dask be added to "requirements.txt"? Or maybe just dask-core?
N-Dekker
reviewed
Mar 9, 2026
| "source": [ | ||
| "## Load Images\n", | ||
| "\n", | ||
| "We load the fixed and moving 2D CT head images as ITK float images, which are required by Elastix." |
Collaborator
There was a problem hiding this comment.
Is it still required to use float images?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Example 23 demonstrating a workflow that combines ngff-zarr multi-resolution image pyramids with ITKElastix registration:
Uses itk_image_to_ngff_image and ngff_image_to_itk_image to bridge between ITK and ngff-zarr data representations.