Page 1 of 1


Posted: Wed Jun 14, 2006 6:41 pm
by ekke
Dear BrainVISA developers

are there plans to support the NIFTI-1 format ?
Or are there workarounds for using data sets generated by SPM5?

All the best

Posted: Mon Jun 19, 2006 9:20 am
by Jean-Francois Mangin
There are plans but no deadline :)
But I hope SPM5 or the NIH is providing some conversion tools...

Posted: Mon Jun 19, 2006 1:56 pm
by Yann Cointepas
As Jean-François said, the current version does not recognize this format. However, if you have a converter program between NIFTI and one of the formats reconized by BrainVISA, it is possible to write a converter process that will be called automatically whenever a NIFTI image is used with a non NIFTY aware process.

Posted: Wed Jun 21, 2006 2:19 pm
by PeterK
FSL has the most stable converter at the moment. It is called avwchfiletype. It will convert from NIFTI to ANALYZE.

Posted: Tue Sep 11, 2007 9:47 am
by joly
Hi all,
Since I also need recently my SPM5 results (spmT images) written in NIFTI format to be readable as ANALYZE format in Anatomist. As a converter, I propose to use a combine code of both SPM versions. Read your NIFTI mage with SPM5 and write the volume in a new ANALYZE file with spm99 (or SPM2) routines. For handiness put the code in a toolbox directory.

Code: Select all

function V=ToAnalyze(P)
% Convert your Nifti spmT images in Analyze format for compatibility with Anatomist (or others)
% P is your nifti (spmT or other) image (a matrix of filenames)
% Olivier Joly - PhD student KUL - Leuven, Belgium - 09/11/2007
if nargin<1
[P,sts] = spm_select([1 Inf],'image','Select your nifti images...');
for i=1:size(P,1)
Vout.fname=[V.fname(1:end-4) '_ANLYZE.img']; % you can change the default name...
V = spm_write_vol99(Vout,Y); %% spm_create_image99, spm_write_plane99,spm_type99,spm_hwrite99 are the SPM99 functions called by spm_write_vol99.

Posted: Tue Sep 11, 2007 10:37 am
by Yann Cointepas
The developpement version of BrainVISA/Anatomist now support NIFTI format. We are trying to make a new stable version as soon as possible but there is still work to do and we cannot give a release date yet.

Posted: Fri Jan 25, 2008 10:54 am
by sdika
Dear developpers,

would it be possible that the future release of brainvisa read/write the gzipped nifti or analyze files ?


Posted: Sun Jan 27, 2008 5:08 pm
by riviere
The future release will support NIFTI-1 and gzipped NIFTI-1 for read/write.