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: image indexing returns image where possible #645

Closed ncullen93 closed 1 month ago

ncullen93 commented 1 month ago

Previously, indexing an ants image always returned a numpy array. This fix ensures that an ants image is returned where possible. No changes are made to indexing with another ants image or to setting behavior.

coveralls commented 1 month ago

Coverage Status

coverage: 81.233% (+0.09%) from 81.141% when pulling 0f22d0613869594184c633dc51682e0e18f78345 on fix-image-indexing into 7d876d800b3a861ab8683b1a4119086cdde15435 on master.