Move code that converts ddf tensor to itk VectorImage into library? #4104
HastingsGreer
started this conversation in
General
Replies: 1 comment
-
I think so, let me convert this into a ticket... cc @kate-sann5100 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions