transform_from_displacement_field does not return anything
See original GitHub issueIssue Description
I’m using ANTsPy
0.2.0
downloaded as a .whl
from the releases page.
It seems currently that there is no way to load a deformable transform (saved as the result of a registration) into a transform object. The function transform_from_displacement_field
appears it should convert such a deformation field loaded as an image into one of these transforms - but currently it just returns None
.
Is there a way to load a displacement field (So I can do things like transform.apply_to_point
with my deformation field)?
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
compose 2 dense displacement field problem · Issue #1291
Hi,. I want to compose 2 dense displacement field T1 , T2 like below: T2(T1(A)) = B I used sitk.CompositeTransform to comose them:...
Read more >Extracting displacement fields from rigid registration
Once I have a registration, what is the best way to extract the deformation field (a.k.a. displacement field) with ITK Python?
Read more >Advanced Normalization Tools ( ANTs ) Discussion
I think it is because internal process of antsApplytransforms of displacement field is not simply shifting points in the moving image and ...
Read more >Resizing displacement field from imregdemons does not ...
I'm trying to register two images (m = moving image to be transformed, s = static reference image) by estimating a displacement field...
Read more >Creating an ITK displacement field image from a numpy array
It seems like it's asking for: itk.Image[itk.Vector[itk.D,3],3]. Not a numpy array. Or maybe your numpy array has the wrong dimensionality.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @stnava , just ran into this in trying to port my ported ANTsR version of your data augmentation code (currently in ANTsPyNet). Linear works and the simulated displacement field stuff is there but the displacement field-to-transform part is lacking. After the busy part of this week is over, I’ll probably revisit this and might bug you for some more information.
One of the notebook examples illustrates how to use that and the version for transforming points
On Wed, Oct 2, 2019 at 6:10 PM brian avants stnava@gmail.com wrote:
brian