Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 How do I convert fsl standard space to voxel space

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Bethany Posted - May 23 2008 : 8:21:49 PM
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.

1   L A T E S T    R E P L I E S    (Newest First)
dvsmith Posted - May 24 2008 : 11:34:06 AM
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



BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.33 seconds. Snitz Forums 2000