Skip to content

Conversation

@cookpa
Copy link
Member

@cookpa cookpa commented Jan 19, 2026

ants.apply_transforms did not work with imagetype=1, because of problems with the pointer casting in ANTs. Unfortunately, this failure was hidden because the apply_transforms python function just returned a copy of the input. This is now changed such that an exception is raised if the C++ call exits with a nonzero status.

This also means that the build_template function was not working - the template deformable shape update was just not happening.

I added tests to check vector resampling and reorientation works now.

@coveralls
Copy link

Coverage Status

coverage: 77.147% (-0.02%) from 77.163%
when pulling a031b0c on test_vector_reorient
into 0f3a14b on master.

@cookpa cookpa merged commit 1ede7de into master Jan 20, 2026
2 checks passed
@cookpa cookpa deleted the test_vector_reorient branch January 20, 2026 02:47
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

Successfully merging this pull request may close these issues.

3 participants