Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 How do I convert fsl standard space to voxel space
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Bethany
BIAC Alum

37 Posts

Posted - May 23 2008 :  8:21:49 PM  Show Profile  Reply with Quote
OK, I'm sure there's a totally straightforward way to do this, but I haven't been able to figure out what. I want to use Matlab to look at my FSL data, at specific MNI coordinates, which means converting said MNI coordinates to voxel space.

How do I do this? I've been trying mni2srs but playing with the various numbers doesn't seem to be helping me.


Edited by - Bethany on May 23 2008 8:31:14 PM

dvsmith
Advanced Member

USA
218 Posts

Posted - May 24 2008 :  11:34:06 AM  Show Profile  Visit dvsmith's Homepage  Reply with Quote
I think this should work with FSL data in 2x2x2mm standard space, but someone correct me if I'm wrong. I tested this on a few voxels in MRIcron and it seems to work fine...

function voxelspace = mni2voxel(inputvoxel) %inputvoxel should be [x y z] MNI coordinates

%my assumptions:
%voxel size == 2mm iso
%datasize=(91,109,91)
%mniorigin=[46 64 37] %identified as MNI coordinate [0 0 0] in MRIcron for fsl standard brain

mniorigin=[46 64 37];
yourvoxel=inputvoxel/2;

voxelspace = yourvoxel + mniorigin;



Obviously this could be made more flexible by loosening the hard coded assumptions...

David



Edited by - dvsmith on May 24 2008 11:35:56 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.58 seconds. Snitz Forums 2000