Dear Raphael,
try this:
N = nifti('image.nii');
N.timing.tspace = 3;
create(N);
Best regards,
Guillaume.
On 15/12/15 20:02, Raphael F.C. wrote:
> Dear experts,
>
> We manipulated a nifti image, an after that the pixdim(5) (which stores
> TR) became 0.
>
> Is there a way to set the value to 2 again, since the hdr structure is
> read-only?
>
> All the best,
> Raphael
>
> --
> Raphael F. Casseb
> Medical Physicist, Ph.D. Student
> Medical Physics Lab - University of Campinas
> Contact: +55 19 3521-8246
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|