Skip to content
Snippets Groups Projects
Commit 6deb0cec authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Bugfix - neuro L/R scaled voxel flip was being encoded incorrectly due to

backwards matrix multplication
parent 77231bbb
No related branches found
No related tags found
No related merge requests found
...@@ -482,7 +482,7 @@ class Nifti(notifier.Notifier): ...@@ -482,7 +482,7 @@ class Nifti(notifier.Notifier):
if self.isNeurological(): if self.isNeurological():
x = (shape[0] - 1) * pixdim[0] x = (shape[0] - 1) * pixdim[0]
flip = transform.scaleOffsetXform([-1, 1, 1], [x, 0, 0]) flip = transform.scaleOffsetXform([-1, 1, 1], [x, 0, 0])
voxToPixdimMat = transform.concat(voxToPixdimMat, flip) voxToPixdimMat = transform.concat(flip, voxToPixdimMat)
return voxToPixdimMat return voxToPixdimMat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment