ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
586 stars 161 forks source link

Fix: raise for bad slice axis; ENH: support slicing vector images #653

Closed ncullen93 closed 1 month ago

ncullen93 commented 1 month ago

I realized that setting axis = -1 in slice_image() caused a seg fault, so I am adding better error catching for the axis and supporting the axis=-1 as many other libraries do. I also need to be able to slice vector images so I implemented that.

coveralls commented 1 month ago

Coverage Status

coverage: 81.331% (+0.02%) from 81.315% when pulling 25698293d8e76acd9a6536427fca3272de4b2b3a on fix--raise-for-bad-slice-axis into 12a60d9412a5eaa9bf3cd3dd632f0472aa887d27 on master.