Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transform_from_displacement_field segfaults #350

Open
rueberger opened this issue Apr 14, 2022 · 2 comments
Open

transform_from_displacement_field segfaults #350

rueberger opened this issue Apr 14, 2022 · 2 comments

Comments

@rueberger
Copy link
Contributor

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

@stnava
Copy link
Member

stnava commented Apr 14, 2022

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.

@rueberger
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants