help > Trouble loading volume file
Showing 1-4 of 4 posts
Display:
Results per page:
Jun 2, 2016  02:06 PM | Pallabi Sengupta
Trouble loading volume file
Dear Experts and Users,
I'm new to BrainNet and I absolutely love it. However, I'm having trouble loading the 'aal.nii' file as the volume file. It keep giving me the error
"Error using spm_slice_vol
Bad image handle dimensions.

Error in spm_read_vols (line 34)
Y(:,:,p,i) = spm_slice_vol(V(i),spm_matrix([0 0 p]),V(i).dim(1:2),0);
Error in BrainNet_LoadFiles>VF_load (line 344)
vol=spm_read_vols(hdr);
Error in BrainNet_LoadFiles>OK_button_Callback (line 192)
[surf.hdr surf.vol]=VF_load(File.VF);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in BrainNet_LoadFiles (line 56)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)BrainNet_LoadFiles('OK_button_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback"
Jun 3, 2016  01:06 AM | Mingrui Xia
RE: Trouble loading volume file
Hi, 

Thanks for using BrainNet Viewer. Could you please check if there are different versions of SPM installed on your machine?

Best,
Mingrui
Jun 3, 2016  01:06 PM | Pallabi Sengupta
RE: Trouble loading volume file
Hey,
I'm using SPM 5.
I wanted to update that I updated to spm 8 and I'm still encountering the same problem.
Just to update: there was a bu in my spm8. I fixed it and now it is working perfectly.

Thanks,
Pallabi
Nov 17, 2022  05:11 AM | Yue Qi
RE: Trouble loading volume file
Originally posted by Mingrui Xia:
Hi, 

Thanks for using BrainNet Viewer. Could you please check if there are different versions of SPM installed on your machine?

Best,
Mingrui
hi ,
I met the similar problem and i checked the version of the spm,I installed the SPM12 and downloaded the newest version of BNV ,adding to the matlab 2016a,could you please tell me how to deal with it?Thanks a lot.
sincerely

错误使用 BrainNet_LoadFiles>MF_button_Callback (line 497)
Unable to run the '@(hObject,eventdata)BrainNet('NV_m_LF_Callback',hObject,eventdata,guidata(hObject))' command because it calls the
'uigetfile' command, which is not supported for this product offering.

出错 gui_mainfcn (line 95)
feval(varargin{:});
出错 BrainNet_LoadFiles (line 56)
gui_mainfcn(gui_State, varargin{:});
出错
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)BrainNet_LoadFiles('MF_button_Callback',hObject,eventdata,guidata(hObject))
错误使用 uiwait (line 81)
计算 UIControl Callback 时出错