BIC-MNI / minc-tools

Basic minc-tools from former minc repository
Other
29 stars 25 forks source link

Fix bounds in index of next slice #112

Closed bbbxyz closed 3 years ago

bbbxyz commented 3 years ago

111

For volumes with a slice dimension of size one, the index of the next slice will sometimes be set to 1 and exceed array bounds. This changes the index used to the one that is correctly set to slcnext, which is correctly set to 0.

vfonov commented 3 years ago

would be great to make a test case