Thank you Gemma. In which function should I replace these lines? I haven't seen them in reorient.m. Regards, yolanda 2012/4/19 Gemma Monté <[log in to unmask]>: > > Maybe this could work: > > comment the next lines: > % vx=1; > % mat = spm_matrix(mn)*diag([vx vx vx 1])*spm_matrix(-[1 1 1]); > > and write: > vx=abs(V.mat(1,1)); vy=abs(V.mat(2,2)); vz=abs(V.mat(3,3)); > mat = spm_matrix(mn)*diag([vx vy vz 1])*spm_matrix(-[1 1 1]); > > Best Regards, > Gemma > > > > On 19 April 2012 16:42, Yolanda Vives <[log in to unmask]> wrote: >> >> Dear SPMers, >> >> I would like to reorient a dataset of T1 MRIs according to the AC-PC >> axis with SPM8 in order to use them with other software tools. I have >> reoriented the images and applied the reorient.m script in matlab and >> I have a voxel size of 1x1x1mm but the MRIs have now different >> dimensions. Is this procedure ok? How could I reslice the images in >> order to have MRIs with the same dimensions and the same voxel sizes? >> >> Thank you for your help, >> yolanda > > -- Yolanda Vives PIC (Port d'Informació Científica) Campus UAB, Edificio D E-08193 Bellaterra, Barcelona Telf. +34 93 586 8232 http://www.pic.es Avis - Aviso - Legal Notice: http://www.ifae.es/legal.html