You need to segment the image first, and pass the seg1 and seg2 images to the function. Best regards, -John > We have acquired SPGR images in bruker format and > coverted to analyze using pvconv.pl perl script by > Matthew Brett. When i display the converted image in > SPM it looks absolutely fine. But when i try to > extract the 3D brain surface using render - xtract > brain ... i get the following error. > > SPM2: spm_surf (v2.3) > 17:10:24 - 02/12/2004 > ======================================================================== > ??? Error using ==> * > Inner matrix dimensions must agree. > > Error in ==> C:\MATLAB6p5\toolbox\spm2\spm_surf.m > (do_it) > On line 106 ==> vertices = (Mat*[vertices' ; > ones(1,size(vertices,1))])'; > > Error in ==> C:\MATLAB6p5\toolbox\spm2\spm_surf.m > On line 53 ==> do_it(P,mode); > > Error in ==> C:\MATLAB6p5\toolbox\spm2\spm.m > On line 1276 ==> evalin('base',CBs{v-1}) > > ??? Error while evaluating uicontrol Callback.