Dear Guillaume and Manfred,
thanks for the replies. Will try out both and see which works best for my further processing.
Best,
Falk
-----Ursprüngliche Nachricht-----
Von: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] Im Auftrag von Guillaume Flandin
Gesendet: Mittwoch, 21. Februar 2018 19:06
An: [log in to unmask]
Betreff: Re: [SPM] Complex-valued NIfTI
Dear Manfred and Falk,
Separate files might indeed be the simplest way to proceed.
Otherwise, you can create (single or double) complex-values NIfTI files with SPM as long as you use nifti() and not spm_vol() functions.
dat = file_array;
dat.fname = 'complex.nii';
dat.dim = [64 64 32];
dat.dtype = 'COMPLEX64-LE'; % or 'COMPLEX128-LE'
dat.offset = ceil(348/8)*8;
N = nifti;
N.dat = dat;
create(N);
dat(:,:,:) = rand(dat.dim) + 1i*rand(dat.dim);
Best regards,
Guillaume.
On 21/02/18 16:00, Manfred Klöbl wrote:
> Dear Falk,
>
> an easy solution would be to save real and imaginary parts separately
> (or magnitude and phase).
>
> Best regards,
> Manfred
>
>
> Am 21.02.2018 um 16:05 schrieb Falk Lüsebrink:
>>
>> Dear all,
>>
>>
>>
>> after offline reconstruction I would like to save the image data as
>> complex-valued NIfTI. In order to have to not deal with image
>> orientation, it would be easiest for me to use the SPM functions to
>> do so. However, SPM does not seem to support complex data at all.
>> Does someone know of a possible solution or alternative?
>>
>>
>>
>> Best,
>>
>> Falk
>>
>>
>>
>> ----------------------------------------
>>
>> Falk Lüsebrink, M. Sc.
>>
>>
>>
>> Otto-von-Guericke-University, Magdeburg, Germany
>>
>> Faculty of natural sciences
>>
>> Institute for experimental physics
>>
>>
>>
>> Biomedical Magnetic Resonance (BMMR)
>>
>> http://www.bmmr.ovgu.de/mm/en/
>>
>>
>>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|