Email discussion lists for the UK Education and Research communities

SPM@JISCMAIL.AC.UK

View:

 Message: [ First | Previous | Next | Last ] By Topic: [ First | Previous | Next | Last ] By Author: [ First | Previous | Next | Last ] Font: Proportional Font
 LISTSERV Archives SPM Home SPM April 2008

Options

Subject:

Re: get BETAs from ROI

From:

Date:

Fri, 4 Apr 2008 22:00:09 +0200

Content-Type:

text/plain

Parts/Attachments:

 text/plain (60 lines)
 or, even better, use the Volumes Toolbox again. There is "Single Volumes->Extract Data from ROI". You can also use this from CheckReg context menu (even in combination with ROIs defined by ROI tool). Volkmar Am Freitag, den 04.04.2008, 14:21 +0100 schrieb Will Penny: > Dear Tim, > > Tim Hahn wrote: > > Dear SPMers, > > I would like to retrieve the betas for an area of which a have a mask. How > > could I get these betas? > > Additionally: is there a list of which data is stored in which workspace > > variable in SPM5? > > The betas are stored in images in the directory in which you did the > analysis eg. beta_0001.img is an image of the first regression > coefficient. > > You can use the display button in SPM, load these images, type in the > relevant co-ordinates and see the beta value ('intensity:'). > > For lots of voxels you could link to the file from the matlab workspace eg. > >V=spm_vol('DIRECTORY-PATH\beta_0001'); > > then create a list of N voxels you want to look at > by specifying their locations in a 3 x N XYZ matrix > > eg. XYZ(:,1)=[-20,-20,5) % first voxel location > XYZ(:,2)=[-20,20,5) % second voxel location > > then get the beta values > > > beta=spm_get_data(V,XYZ) > > Using similar principles you could create the XYZ list automatically > by loading in a mask image. Getting all the data from a large range of > voxels, then eliminating those voxels not in the mask. Or perhaps > someone else has already written this piece of code ! > > Best, > > Will. > > > > Thanks in advance! > > Kind regards, > > Tim > > > > > -- Volkmar Glauche - Department of Neurology [log in to unmask] Universitaetsklinikum Freiburg Phone 49(0)761-270-5331 Breisacher Str. 64 Fax 49(0)761-270-5416 79106 Freiburg http://fbi.uniklinik-freiburg.de/