DDF output for data augmentation transforms #3933
Replies: 4 comments
-
not sure if I understand your question correctly, but you may need some modification of the MONAI/monai/transforms/spatial/dictionary.py Lines 844 to 856 in 4211162 |
Beta Was this translation helpful? Give feedback.
-
For creating a DDF out of affine transforms specifically, the implementation of AffineHead, which is part of GlobalNet, could be helpful. See here: MONAI/monai/networks/nets/regunet.py Lines 267 to 278 in f15ff93 |
Beta Was this translation helpful? Give feedback.
-
Thank you all for your suggestions. I will try to implement them and let you know if it worked out |
Beta Was this translation helpful? Give feedback.
-
That would be the transform
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
is there a way to output the dense displacement field that was used to deform images for data augmentation? I defined a Compose transform that contains, among others, RandAffine and BSpline based deformation field (RandomElasticDeformation from torchio).
I can extract the affine matrix that in principle could be used to get the ddf but I don't have anything for B-splines.
Beta Was this translation helpful? Give feedback.
All reactions