ANTsPy icon indicating copy to clipboard operation
ANTsPy copied to clipboard

transform_from_displacement_field segfaults

Open rueberger opened this issue 2 years ago • 2 comments

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)))

rueberger avatar Apr 14 '22 05:04 rueberger

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.

stnava avatar Apr 14 '22 12:04 stnava

right, I'm aware of the correct usage, just reporting the segfault

rueberger avatar Apr 14 '22 17:04 rueberger