Re: [Freesurfer] create volumes from surfaces

2009-11-23 Thread Martin Ystad
Hi, thanks for the answer. Sorry for my delayed response. I tried the mris_calc command, but it didn't work. Here's the error message I got: "mris_calc: curvature file 'lobe.mgz' has wrong magic number." The multiplication was easily done i Matlab, but is there any way to do this with FreeSurfe

Re: [Freesurfer] create volumes from surfaces

2009-11-16 Thread Douglas N Greve
The 2nd step only creates a mask of the entire surface. You need a step 3 in which you multiply them together: 3. mris_calc -o product.mgz lobe.mgz mul lobe_surface.mgz Martin Ystad wrote: > I tried this, but something is going wrong. Here's what I did: > 1. I ran $ mri_binarize --i subjid/mri/

Re: [Freesurfer] create volumes from surfaces

2009-11-16 Thread Martin Ystad
I tried this, but something is going wrong. Here's what I did: 1. I ran $ mri_binarize --i subjid/mri/aparc+asec.mgz --match xx --match yy --o lobe.mgz - this produces a nice binary mask of, say, the left frontal lobe. 2. Then I ran $ mri_surf2vol --mkmask --surf pial --hemi lh --template lobe.mg

Re: [Freesurfer] create volumes from surfaces

2009-11-13 Thread Douglas N Greve
Use mri_surf2vol to create volumes. You can binarize aparc+aseg.mgz to give a mask of an area (use --match), then take the intersection of the mask with the surface-in-volume. doug Martin Ystad wrote: > Hi, > I'm working on a fractal dimension analysis of the pial- and > white-matter surface.

[Freesurfer] create volumes from surfaces

2009-11-13 Thread Martin Ystad
Hi, I'm working on a fractal dimension analysis of the pial- and white-matter surface. The matlab script that calculates the fractal dimension needs binary nifti-files as input. Since FreeSurfer creates the surfaces I need, here's what I want to do: I'd like to convert the pial and white-matter