Brainstorm user forum: MEG/EEG source imaging

Go Back   Brainstorm user forum: MEG/EEG source imaging > BrainStorm3 > Open discussion

Reply
 
Thread Tools Display Modes
  #1  
Old October 23rd, 2009, 05:34
sockeel sockeel is offline
Junior Member
 
Join Date: Sep 2009
Location: UPMC - LIF - LENA Pitié-Salpétrière, Paris, France
Posts: 3
sockeel is on a distinguished road
Default transformation during Brainstorm's importation

Hello,

I'm a new brainstorm's user and I have a little question :
When I import MRI, surfaces... in Brainstorm, they are all converted into the CTF coordinates system. And when I export them after my work with Brainstorm, they still are in this system. But I'm working with others images (fMRI, DTI...), I haven't import in Brainstorm.
So my question is : Where can I find the transformation Brainstorm made when it imports an image?

Thanks for the help,
Stéphane Sockeel
Reply With Quote
  #2  
Old October 23rd, 2009, 09:50
Francois Francois is offline
Software Engineer of BrainStorm
BrainStorm DeveloperSite Admin
 
Join Date: Feb 2007
Posts: 48
Francois is on a distinguished road
Default

Dear Stephane,

Indeed, the surfaces and sensors coordinates are converted in SCS (subject coordinates system), which follows the CTF convention, when they are imported. Documentation available at:
http://neuroimage.usc.edu/brainstorm/CoordinateSystems

To convert from a coordinates system to another, you can use the functions in brainstorm3/toolbox/cs. The transform from MRI to SCS is stored in the MRI file, in the field "SCS".

To convert back into MRI coordinates the vertices of a surface :
1) Export the surface to Matlab (right click on surface file > File > Export to Matlab), to a variable called "surf"
2) Export the MRI to Matlab (variable "mri")
3) Typing "scs2mri(mri, surf.Vertices)" in your Matlab command window will give you the positions of the vertices in MRI CS.

Does that help ?
Francois
Reply With Quote
  #3  
Old October 26th, 2009, 08:22
sockeel sockeel is offline
Junior Member
 
Join Date: Sep 2009
Location: UPMC - LIF - LENA Pitié-Salpétrière, Paris, France
Posts: 3
sockeel is on a distinguished road
Default

Dear François,

I have run the 'scs2mri' code and I observe a little error in the result. The origin is good, but the mesh is too small.
I think is just a problem of units (meter vs mm), because a x1000 homothety resolve it.

Thanks for all,
Stéphane
Reply With Quote
  #4  
Old October 28th, 2009, 11:35
Francois Francois is offline
Software Engineer of BrainStorm
BrainStorm DeveloperSite Admin
 
Join Date: Feb 2007
Posts: 48
Francois is on a distinguished road
Default

Hi Stephane,
You're right, I did a little mistake in the function calls. The surfaces coordinates are stored in meters, while the mri2scs function takes millimeters in input.

The correct call to get your vertices in MRI coordinates is:
scs2mri(mri, surf.Vertices * 1000) / 1000

Francois
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:07.