I found the solution (thanks to the help of Michael Erb): The problem is an incompatibility of pm_seed with SPM versions > SPM2, as only the method 'huttonish' requires pm_seed and mark3d is standard no one probably stumbled across this before. Here is the quick solution for anyone who wants to fix his Fieldmap Toolbox to handle all methods: change the following code in pm_seed (line 45 to 50): P = struct('dim', [dim 64],... 'pinfo', [1 0]',... 'mat', M); to P = struct('dim', [dim],... 'dt', [64 0],... 'pinfo', [1 0]',... 'mat', M); this just fixes the structure of the volume to account for the changes in spm_vol. Yours, Benjamin > > Benjamin Bender schrieb: >> Dear SPM community, >> >> I am trying to unwrap a phase image with the help of the unwrap >> function of the fieldmap toolbox and get the following error message: >> >> Error using ==> spm_conv_vol >> Wrong sized dim. >> >> Error in ==> spm_smooth at 111 >> spm_conv_vol(P,Q,x,y,z,-[i,j,k]); >> >> Error in ==> pm_seed at 53 >> spm_smooth(P,svol,50); >> >> Error in ==> bb_unwrap at 187 >> seed = pm_seed(angvar,mask,pxs); >> >> When I display my image with spm, I get the following voxel size: >> -0.513 0.513 3 >> >> I believe the negative voxel size is the problem. I really wonder why >> I got a negative voxel size and how to fix it? I used the dicom import >> function of SPM to import my DICOM files just as I usually did. >> >> Any suggestions? >> Benjamin >> > -- Benjamin Bender Abteilung Diagnostische und Interventionelle Neuroradiologie Universitätsklinikum Tübingen Hoppe-Seyler- Str. 3 72076 Tübingen Tel. (07071) 29-85397