BF: make fslcomplex preserve image orientation
This MR fixes fslcomplex
so that output files have the same orientation information as (complex) input files. The read_complexvolume
function reads in a complex64
image as separate real/imaginary volume<float>
objects, but was only performing a L/R flip, and was not actually setting header information in the loaded volumes.
Fixes avwutils#5 (closed)
Merge request reports
Activity
mentioned in merge request pyfeeds-tests!46 (merged)
added 1 commit
- b932d06d - RF: remove isComplex check in for-loop conditionals
mentioned in issue avwutils#5 (closed)
@mwebster you're right - I had thought that I'd added a L/R flip in. Fixed now. I've also added some C++ unit tests to check that the l/r flip is being applied correctly for neurologically stored images, and that the s/qforms and codes are preserved when reading/saving/re-reading a complex volume.