Cannot open images

155 views
Skip to first unread message

Vivian

unread,
Mar 17, 2011, 6:14:35 PM3/17/11
to xjView discuss group
Hi, I just downloaded my own copy of xjview so i could work locally,
not always on my University's network. But I cannot open any of the
images that I can open when I'm working on the network.

Here is the error I get when I select File>open images:

Error in ==> xjview at 657
CallBack_loadImagePush(handles.loadImagePush, [],
varargin);

>> xjview
??? Undefined function or method 'cfg_get_defaults' for
input arguments of type 'char'.

Error in ==> cfg_getfile>colours at 1304
lf = cfg_get_defaults('cfg_ui.lfont');

Error in ==> cfg_getfile>selector at 251
[col1,col2,col3,lf,bf] = colours;

Error in ==> cfg_getfile at 188
[t,sts] = selector(varargin{:});

Error in ==> spm_select at 88
[t sts] = cfg_getfile(varargin{:});

Error in ==> xjview>getImageFile at 6080
P0 = spm_select(Inf,'image','Select image files');

Error in ==> xjview>CallBack_loadImagePush at 3369
[handles.imageFileName, handles.M, handles.DIM,
handles.TF, handles.df, handles.mni, handles.intensity]
= getImageFile(thisfilename);

??? Error while evaluating uimenu Callback


I also get an error when I try using double-click to open, and when I
try to call an image from the matlab command line, I get:

>> xjview('spmT_0001.img')
??? Undefined function or method 'nifti' for input
arguments of type 'char'.

Error in ==> spm_vol_nifti at 16
N = nifti(fname);

Error in ==> spm_vol>subfunc at 136
V = spm_vol_nifti(p);

Error in ==> spm_vol>subfunc1 at 84
v = subfunc(P(i,:));

Error in ==> spm_vol>subfunc2 at 70
V = subfunc1(P);

Error in ==> spm_vol at 54
V = subfunc2(P);

Error in ==> xjview>mask2coord at 6236
V = spm_vol(mask);

Error in ==> xjview>getImageFile at 6123
[cor{ii}, intensity{ii}, tmp{ii}, M{ii}, DIM{ii},
TF{ii}, df{ii}] = mask2coord(imageFile{ii}, 0);

Error in ==> xjview>CallBack_loadImagePush at 3369
[handles.imageFileName, handles.M, handles.DIM,
handles.TF, handles.df, handles.mni, handles.intensity]
= getImageFile(thisfilename);

Error in ==> xjview at 657
CallBack_loadImagePush(handles.loadImagePush, [],
varargin);

What can i do to fix this?

Xu Cui

unread,
Mar 17, 2011, 6:50:10 PM3/17/11
to xjview-dis...@googlegroups.com
I sometimes encounter this problem too. Usually the problem fixed itself after a MatLab restart. I never figured out what happened.

Xu


--
You received this message because you are subscribed to the Google Groups "xjView discuss group" group.
To post to this group, send email to xjview-dis...@googlegroups.com.
To unsubscribe from this group, send email to xjview-discuss-g...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xjview-discuss-group?hl=en.




--
----------------------------------------------------------------
Xu Cui
Department of Psychiatry and Behavioral Sciences
Stanford University
Blog: http://www.alivelearn.net
----------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages