Open rueberger opened 2 years ago
incorrect usage. requires multi-channel input.
field : ANTsImage
deformation field as multi-channel ANTsImage
could add a check for this type of bad input or maybe do a conversion internally.
right, I'm aware of the correct usage, just reporting the segfault
the following cause segfaults:
ants.transform_from_displacement_field(ants.from_numpy(np.random.randn(200, 200, 200)))
ants.transform_from_displacement_field(ants.from_numpy(np.random.randn(200, 200, 200, 3)))