Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_volumereslice”.
FT_VOLUMERESLICE interpolates and reslices a volume along the principal axes of the coordinate system according to a specified resolution. Use as mri = ft_volumereslice(cfg, mri) where the input mri should be a single anatomical or functional MRI volume that was for example read with FT_READ_MRI. The configuration structure can contain cfg.resolution = number, in physical units The new spatial extent can be specified with cfg.xrange = [min max], in physical units cfg.yrange = [min max], in physical units cfg.zrange = [min max], in physical units or alternatively with cfg.dim = [nx ny nz], size of the volume in each direction If the input mri has a coordsys-field, the centre of the volume will be shifted (with respect to the origin of the coordinate system), for the brain to fit nicely in the box. To facilitate data-handling and distributed computing with the peer-to-peer module, this function has the following options: cfg.inputfile = ... cfg.outputfile = ... If you specify one of these (or both) the input data will be read from a *.mat file on disk and/or the output data will be written to a *.mat file. These mat files should contain only a single variable, corresponding with the input/output structure. See also FT_VOLUMEDOWNSAMPLE, FT_SOURCEINTERPOLATE
Share this page: