openmrslab / suspect

MRS processing tools
https://suspect.readthedocs.io/en/latest/
MIT License
33 stars 23 forks source link

BUG: calculating axial/sagittal/coronal axes of transform does not use normalised direction vectors #139

Closed bennyrowland closed 4 years ago

bennyrowland commented 4 years ago

The _closest_axis() method of ImageBase does not use a normalised version of the three direction vectors, therefore for an oblong oblique voxel, the wrong axis can be selected when looking for the axis closest to e.g. (0, 1, 0).