Back to the main page.

Bug 82 - volumewrite_spm should go into fileio

Status CLOSED FIXED
Reported 2010-05-19 09:51:00 +0200
Modified 2011-01-12 14:37:25 +0100
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Jan-Mathijs Schoffelen - 2010-05-19 09:51:22 +0200

volumewrite_spm is in fieldtrip/private and may be only called from m-files in the main fieldtrip directory. This should be checked by the way. Anyway, it may be more natural to move volumewrite_spm to fileio/private and create a file-external in fieldtrip/private for this purpose. Consider also renaming the function into write_spm_volume or so.


Jan-Mathijs Schoffelen - 2011-01-11 15:34:53 +0100

I created a function in fileio: ft_write_volume. It has the same api as the other ft_write_XXX functions and so far can write analyze, using spm (based on fileio/private/volumewrite_spm), and .mgz using freesurfer. In fieldtrip-main, I changed calls to volumewrite_spm into ft_write_volume To do: -build in support of nifti -move functionality of ft_volumewrite into ft_write_volume (e.g. writing of brainvoyager files)