open-discussion
open-discussion > RE: DWIConvert
Mar 22, 2018 09:03 PM | Micah Johnson - UCLA Department of Psychology
RE: DWIConvert
The code now works, thank you very much.
However, when viewing the output file in fslview, the orientation labels are still wrong (anterior/posterior has been switched) and the angle of the brain in the sagittal view is very slanted. Is there something wrong or missing with my code??
$SlicerNew --launch DWIConvert --inputVolume ${nrrdraw}_QCed_unu.nrrd --conversionMode NrrdToFSL --outputBValues ${bval}_QCed_corr.txt --outputBVectors ${bvec}_QCed_corr.txt --outputVolume ${nrrdraw}_QCed_corr.nii.gz
Or is it that FSL is incorrectly reading the header? Have you seen this problem before?
In the past, I've "fixed" it with the code below (taken from https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/O...), but this drastically changes the sform/qform header info and gives me severe problems when trying to use this output for registrations (e.g. moving to T1 space, using ANTs)
fslorient -deleteorient filename.nii.gz
fslorient -setsformcode 1 filename.nii.gz
Do you know of any solution to this problem? (this would be a huge help for me, I've been stuck on this problem for a long time)
However, when viewing the output file in fslview, the orientation labels are still wrong (anterior/posterior has been switched) and the angle of the brain in the sagittal view is very slanted. Is there something wrong or missing with my code??
$SlicerNew --launch DWIConvert --inputVolume ${nrrdraw}_QCed_unu.nrrd --conversionMode NrrdToFSL --outputBValues ${bval}_QCed_corr.txt --outputBVectors ${bvec}_QCed_corr.txt --outputVolume ${nrrdraw}_QCed_corr.nii.gz
Or is it that FSL is incorrectly reading the header? Have you seen this problem before?
In the past, I've "fixed" it with the code below (taken from https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/O...), but this drastically changes the sform/qform header info and gives me severe problems when trying to use this output for registrations (e.g. moving to T1 space, using ANTs)
fslorient -deleteorient filename.nii.gz
fslorient -setsformcode 1 filename.nii.gz
Do you know of any solution to this problem? (this would be a huge help for me, I've been stuck on this problem for a long time)
Threaded View
Title | Author | Date |
---|---|---|
Jacek M | Apr 8, 2016 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Martin Styner | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Ryan H | Jan 23, 2018 | |
Martin Styner | Jan 26, 2018 | |
Ryan H | Jan 26, 2018 | |
Martin Styner | Jan 26, 2018 | |
Ryan H | Jan 26, 2018 | |
Martin Styner | Jan 26, 2018 | |
Ryan H | Jan 26, 2018 | |
Martin Styner | Jan 29, 2018 | |
Ryan H | Jan 29, 2018 | |
Martin Styner | Jan 30, 2018 | |
Ryan H | Jan 30, 2018 | |
Martin Styner | Jan 31, 2018 | |
Ryan H | Feb 2, 2018 | |
Martin Styner | Feb 19, 2018 | |
Ryan H | Feb 19, 2018 | |
Martin Styner | Feb 21, 2018 | |
Ryan H | Jan 31, 2018 | |
Maike Kleemeyer | Jan 10, 2018 | |
Martin Styner | Jan 10, 2018 | |
Maike Kleemeyer | Jan 11, 2018 | |
Martin Styner | Jan 11, 2018 | |
Maike Kleemeyer | Jan 15, 2018 | |
Martin Styner | Jan 17, 2018 | |
Maike Kleemeyer | Jan 18, 2018 | |
Martin Styner | Jan 18, 2018 | |
Marie Drottar | Jun 7, 2016 | |
Jacek M | Apr 27, 2016 | |
Martin Styner | Apr 27, 2016 | |
Jacek M | Apr 15, 2016 | |
Martin Styner | Apr 15, 2016 | |
Micah Johnson | Mar 27, 2018 | |
Daniel Berge | Apr 2, 2018 | |
Micah Johnson | Apr 2, 2018 | |
Juan Prieto | Apr 8, 2016 | |
Jacek M | Apr 13, 2016 | |
Martin Styner | Apr 13, 2016 | |
Jacek M | Apr 13, 2016 | |
Martin Styner | Apr 8, 2016 | |