Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Satrajit Ghosh
ah in that case you need to multiply the affine stored in one session's bbreg with the inverse of the other bbreg from the target session and then use mri_vol2vol with the composite transform. note: only nearest or trilinear interp cheers, satra On Tue, Dec 20, 2011 at 12:07 AM, Michael Waskom

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Michael Waskom
OK, cool, I'll look into this for the future. But back to my original question. If I already have data preprocessed with several runs, each run motion-corrected within-session, and an affine registration from each run's space to the anatomical determined by bbregister, is there any way to use thos

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Satrajit Ghosh
hi michael, so for each frame of every session you get a bbreg file and the script ends up aligning the volumes to some reference. all you need to do is propagate that reference across your sessions. you might for example want this to be the middle volume of your entire experiment. cheers, satra

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Michael Waskom
Sorry, I guess it's not clear what I'm hoping to do. Because I'm going to use this data for mvpa, I don't want to resample into 1x1x1 voxels or go onto the surface. But I have multiple runs that I want to use, so I need there to be a voxel-to-brain correspondence across the different runs. Michae

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Douglas N Greve
It will output a register.dat for each frame. You can extract the frame from the time series (mri_convert --frame ), apply the reg with mri_vol2vol or mri_vol2surf, then concatenate the results back into a time series (mri_concat) doug Michael Waskom wrote: > Hi Satra and Doug, > > That script

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Michael Waskom
Hi Satra and Doug, That script is good to know about. But, from what I can tell, it looks like it will output a timeseries in the same space as the original template (each frame gets transformed with a combination of the matrix specifying its registration to the anatomical and the inverse of the

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Douglas N Greve
That may or may not do what you want. I think that version keeps the functional data in the functional space. It would be better to register each TR to the anat, then simply sample each TR to the anatomical space (volume or surface) rather than going back into functional space. doug Satrajit G

Re: [Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-19 Thread Satrajit Ghosh
hey mike, take a look at: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mc-bbr cheers, satra On Mon, Dec 19, 2011 at 2:04 AM, Michael Waskom wrote: > Hi Doug, > > Is it possible to use the bbregister parameters to resample a functional > image such that it is in register wit

[Freesurfer] Use bbregister parameters to transform to EPI geometry

2011-12-18 Thread Michael Waskom
Hi Doug, Is it possible to use the bbregister parameters to resample a functional image such that it is in register with the anatomical image but retains the epi geometry? I actually don't care so much about the epi-anat registration, but what I would like to be able to do is motion correct and ot