Print

Print


Try deleting the output.img file before you begin.  As the error message says, 
the reason for the problem appears to be that you have incompatible 
dimensions between the volume you are trying to add to the output.img file, 
and the existing output.img.

Best regards,m
-John

> The output of some images  can not
> be used with Image calculator in SPM5 ,I get error when I work with that
> files but these files have no problem when using them with other options
> such as Normalize segment and ...,
> how can I solve this problem ?

> Here is the error :
> Warning: Incompatible x,y,z dimensions in file ".\output.img" [182  218 
> 182]~=[312  269  299].
>
> > In F:\fsm\spm5b\spm_create_vol.m (create_vol) at line 85
>
>   In F:\fsm\spm5b\spm_create_vol.m at line 16
>   In F:\fsm\spm5b\spm_write_vol.m at line 76
>   In F:\fsm\spm5b\spm_imcalc.m at line 114
>   In F:\fsm\spm5b\spm_imcalc_ui.m at line 162
>   In F:\fsm\spm5b\spm_config_imcalc.m (fun) at line 140
>   In F:\fsm\spm5b\spm_jobman.m (run_struct1) at line 1345
>   In F:\fsm\spm5b\spm_jobman.m (run_struct1) at line 1353
>   In F:\fsm\spm5b\spm_jobman.m (run_struct1) at line 1353
>   In F:\fsm\spm5b\spm_jobman.m (run_struct) at line 1312
> Warning: Incompatible intercept in ".\output.img" 127.0019~=150.0023.
>
> > In F:\fsm\spm5b\spm_create_vol.m (create_vol) at line 98
>
>   In F:\fsm\spm5b\spm_create_vol.m at line 16
>   In F:\fsm\spm5b\spm_write_vol.m at line 76
>   In F:\fsm\spm5b\spm_imcalc.m at line 114
>   In F:\fsm\spm5b\spm_imcalc_ui.m at line 162
>   In F:\fsm\spm5b\spm_config_imcalc.m (fun) at line 140
>   In F:\fsm\spm5b\spm_jobman.m (run_struct1) at line 1345
>   In F:\fsm\spm5b\spm_jobman.m (run_struct1) at line 1353
>   In F:\fsm\spm5b\spm_jobman.m (run_struct1) at line 1353
>   In F:\fsm\spm5b\spm_jobman.m (run_struct) at line 1312
> ??? Error using ==> subsasgn
> A dot name structure assignment is illegal when the structure is empty.
>   Use a subscript on the structure.
> Error in ==> F:\fsm\spm5b\@nifti\subsasgn.m (fun)
> On line 86  ==>             val1 = subsasgn(val0,subs(2:end),val);
> Error in ==> F:\fsm\spm5b\@nifti\subsasgn.m
> On line 20  ==>         obji    = fun(obji,subs,val);
> Error in ==> F:\fsm\spm5b\spm_create_vol.m (create_vol)
> On line 109  ==>         N.extras.mat(:,:,V.n(1)) = V.mat;
> Error in ==> F:\fsm\spm5b\spm_create_vol.m
> On line 16  ==>         v = create_vol(V(i));
> Error in ==> F:\fsm\spm5b\spm_write_vol.m
> On line 76  ==> V = spm_create_vol(V);
> Error in ==> F:\fsm\spm5b\spm_imcalc.m
> On line 114  ==> Vo = spm_write_vol(Vo,Y);
> Error in ==> F:\fsm\spm5b\spm_imcalc_ui.m
> On line 162  ==> Vo   = spm_imcalc(Vi,Vo,f,args{:});
> Error in ==> F:\fsm\spm5b\spm_config_imcalc.m (fun)
> On line 140  ==>
> spm_imcalc_ui(strvcat(opt.input{:}),opt.output,opt.expression,flags); Error
> in ==> F:\fsm\spm5b\spm_jobman.m (run_struct1)
> On line 1345  ==>         feval(prog,val);
> Error in ==> F:\fsm\spm5b\spm_jobman.m (run_struct1)
> On line 1353  ==>             run_struct1(c.val{i});
> Error in ==> F:\fsm\spm5b\spm_jobman.m (run_struct1)
> On line 1353  ==>             run_struct1(c.val{i});
> Error in ==> F:\fsm\spm5b\spm_jobman.m (run_struct)
> On line 1312  ==> run_struct1(c);
> ??? Error while evaluating uicontrol Callback.