Dear Jon,
I realise I made two mistakes in one line, not bad. It should read:
spm_reslice({'4D.nii,1','ROi1.nii','ROI2.nii'},struct('which',1));
Best regards,
Guillaume.
On 26/10/16 10:40, Guillaume Flandin wrote:
> Dear Jon,
>
> my guess is that you are using the entire 4D file instead of its first
> frame. You probably need to add a ',1' suffix:
> spm_reslice('4D.nii,1',{'ROi1.nii','ROI2.nii'},,struct('which',1));
>
> Best regards,
> Guillaume.
>
>
> On 25/10/16 23:06, Jonathan Orawe wrote:
>> Hi SPM-People,
>>
>> So, when I reference spm_reslice(P,flags), using SPM12, it always seems
>> to reslice the first image regardless as to what I set the flags.which
>> field to. In the documentation it states that flags.which = 1 should
>> produce resliced images only for images 2:end, but when I have been
>> using the script, it seems to reslice the first image regardless as to
>> whether flags.which is set to 1 or 2. It gets to be an issue above an
>> annoyance if I'm reslicing ROIs to the dimensions pulled from a
>> reference functional 4d dataset, with the size of data now-a-days.
>>
>> Am I missing something? Is there an alternative function I should be
>> using to simply reslice images to different dimensions?
>>
>> Thanks!
>> Jon
>>
>> --
>> Jonathan O'Rawe
>> Graduate Student in Integrative Neuroscience
>> Dept. of Psychology
>> Stony Brook University
>> Stony Brook, NY 11794-2500
>> Office: Psychology B 339
>> Email: [log in to unmask] <mailto:[log in to unmask]>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|