[FieldTrip] change orientation of MRI or source plot

Wu, Jia jia.wu at yale.edu
Mon Sep 28 16:57:46 CEST 2015

Thank you very much for the note. I'm not sure how to impose a RAS coordinate system. I tried the following code and got an error. If you have  a quick moment do you mind pointing me to the right direction? Thank you so much!

target = 'template/T1.nii';

the input is volume data with dimensions [256 256 256]
Warning: defaulting to  coordinate system
> In ft_volumerealign (line 238)
Input volume has coordinate system 'ctf'
Error using ft_convert_units (line 142)
cannot determine geometrical units

Error in ft_determine_coordsys (line 55)
data  = ft_convert_units(data);

Error in ft_convert_coordsys (line 59)
  obj = ft_determine_coordsys(obj, 'interactive', 'yes');

Error in ft_volumerealign (line 827)
      target = ft_convert_coordsys(target);

From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of Schoffelen, J.M. (Jan Mathijs) [jan.schoffelen at donders.ru.nl]
Sent: Monday, September 28, 2015 3:20 AM
To: FieldTrip discussion list
Subject: Re: [FieldTrip] change orientation of MRI or source plot

If you want the anatomical image to be displayed exactly the same as the template image you need to do the following 2 things:

-call ft_volumerealign, and impose a RAS coordinate system.
-call ft_volumereslice, to align the i/j/k voxel axes with the x/y/z coordinate axes (which in the previous step were constructed to be RAS).


On Sep 25, 2015, at 4:46 PM, Wu, Jia <jia.wu at yale.edu<mailto:jia.wu at yale.edu>> wrote:


I have a question about the orientation of MRI and source plot. I made the some comparison plot as below.

The top image is a plot of the T1template, which follows the convention that the top left is coronal, top right is sagittal and the bottom left is axial.

The bottom image is from Subject01.mri downloaded from the fieldtrip server and applied volumeslice. (Without using volumeslice the orientation is not correct either). The coronal and sagittal views were switched.

I'm wondering whether there is a way that I can change the orientation of the plot.

fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150928/0f159676/attachment-0002.html>

More information about the fieldtrip mailing list