Navigation(children) Index TableOfContents

Name

mri_vol2surf - assigns values from a volume to each surface vertex

Synopsis

mri_vol2surf [<options>] --src inputfile --out outpufile --srcreg registrationfile --hemi hemisphere

Arguments

Required Flagged Arguments

--src

input volume path

--out

output path

--srcreg registrationfile

source registration file

RegistrationFile as computed by tkregister, tkmedit, mri_make_register, or spmmat2register. The volume is mapped onto the surface of subject subjectname (unless --trgsubject is specified). There may or may not be another line with the method used to convert voxel indices from floating to integer during registration. If tkregiser was used to register the volume, the method should be blank or 'tkregister' (no quotes), otherwise it should be 'round'. This can be overridden with --float2int.

--hemi

hemisphere (lh or rh)

Optional Flagged Arguments

--src_type

input volume fileformat

--float2int

float-to-int conversion method (<round>, tkregister )

override float2int method in registration file. See BUGS.

--fixtkreg

make make registration matrix round-compatible

Attempt to convert the registration matrix so that it is round (or nearest neighbor) compatible. Setting this flag will only have an effect if the float2int method is tkregister. It will 'fix' the matrix and change the float2int method to round. Don't use this flag unless you know what you are doing.

--fwhm FWHM

smooth input volume (mm)

Smooth input volume with a gaussian kernal with FWHM mm.

--trgsubject

target subject (if different than reg)

resample volume onto this subject instead of the one found in the registration file. The target subject can be either a subject name (as found in $SUBJECTS_DIR) or ico (to map onto the sphere). If the target subject is not the source subject, then the surfaces are mapped using each subject's spherical surface registration (?h.sphere.reg or that specified with --surfreg). If the target subject is ico, then the volume is resampled onto an icosahedron, which is used to uniformly sample a sphere. This requires specifying the icosahedron order (see --icoorder).

--surf

target surface (white)

the surface on which to resample. The default is white. It will look for $SUBJECTS_DIR/subjectname/surf/?h.surfacenam

With --trgsubject

--surfreg

intersubjectregsurface

Default=sphere.reg. This is a representation of a subject's cortical surface after it has been registered/morphed with a template spherical surface.

||--icoorder||order of icosahedron when trgsubject=ico|| this specifies the size of the icosahedron according to the following table

Surface Normal Proection

--projfrac frac

(0->1)fractional projection along normal

--projdist mmdist

distance projection along normal

Output

--out_type

output format

--frame

save only nth frame (with paint format)

--noreshape

do not save output as multiple 'slices'

--rf R

integer reshaping factor, save as R 'slices'

--srchit

volume to store the number of hits at each vox

--srchit_type

source hit volume format

--nvox nvoxfile

write number of voxels intersecting surface

Other

--srcsynth seed

synthesize source volume

--seedfile fname

save synth seed to fname

--help

print out information on how to use this program

--version

print out version and exit

Outputs

??

description

??

description

Description

SPECIFYING THE INPUT/OUTPUT PATH and TYPE

NOTES

Examples

Example 1

To paint the third frame of bfloat volume sig registered with tkregister onto a the left hemisphere of a surface

This will create sig-lh.w in the current directory, which can then be loaded into tksurfer

Example 2

To convert an analyze volume onto the sphere (right hemisphere)

Bugs

When the output format is paint, the output file must be specified with a partial path (eg, ./data-lh.w) or else the output will be written into the subject's anatomical directory.

Currently no support for searching along the surface normal for a maximum value (as can be done with the paint program)

The ability to put the float2int conversion method in the registration file is new as of Fall 2001. Consequently, there may be some registration files that do not have a method string, which will force the method to be that of tkregister. This is can be overridden with --float2int.

See Also

["othercommand1"], ["othercommand2"]

Links

FreeSurfer, FsFast

Methods Description

description
description

References

["References/Lastname###"]

Reporting Bugs

Report bugs to <analysis-bugs@nmr.mgh.harvard.edu>

Author/s

DougGreve