[Marsbar-users] voxel coordinates in a maroi_pointlist?
Status: Beta
Brought to you by:
matthewbrett
From: Sylvain T. <Syl...@in...> - 2007-04-03 16:04:59
|
Dear Matthew, I'm using some marsbar functions inside my own custom-written analysis code. I'd like to have access to the voxel coordinates (in matlab matrix units) of a marsbar-roi that's under the form of a maroi_pointlist... My code looks like this for now: R = maroi(fname); R_space = native_space(R); [pts vals] = voxpts(R,R_space); First, I'm not really sure what I'm doing with the native_space function. Can you confirm this is correct? Second: how can I convert the values I thus get in the 'pts' variable into matlab matrix coordinates? (I mean, coordinates I could use to extract the data from a 3D matrix after having read it with something like data = spm_read_vols(spm_vol(data_fname)) ) Hoping to make (at least some) sense here, thanks in advance for your help! Sylvain |