You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by HastingsGreer April 11, 2022
There is a correct way to convert a ddf tensor accepted by Monai's warp block into an itk VectorImage accepted by itk's WarpImageFilter.
I would like to use this conversion code, and I think it is generally useful since it correctly handles fiddly details like transposing the tensor and reversing the order of elements in each vector. Would a pull request moving it from the test code into the MONAI library be welcome?
Fixes#5708Fixes#4117
### Description
This is a migration of the PR (by @ntatsiskhttps://github.com/ntatsisk)
InsightSoftwareConsortium/itk-torch-transform-bridge#6
into MONAI.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [x] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
---------
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Discussed in #4104
Originally posted by HastingsGreer April 11, 2022
There is a correct way to convert a ddf tensor accepted by Monai's warp block into an itk VectorImage accepted by itk's WarpImageFilter.
This conversion is defined and tested here:
MONAI/tests/test_warp.py
Line 178 in af6560a
I would like to use this conversion code, and I think it is generally useful since it correctly handles fiddly details like transposing the tensor and reversing the order of elements in each vector. Would a pull request moving it from the test code into the MONAI library be welcome?
--
see also https://github.com/Project-MONAI/tutorials/blob/master/modules/resample_benchmark.ipynb
The text was updated successfully, but these errors were encountered: