Forum

Notifications
Clear all

Error in running MCX on specific MRI anatomy

6 Posts
4 Users
0 Likes
243 Views
Yichuan Jiang
Posts: 6
Topic starter
(@yichuan-jiang)
Active Member
Joined: 8 months ago

Hi! There are something wrong with the MCXlab in AtlasViewer. Error occurs every time I try to use MCX on my own anatomy imported from FreeSurfer, even the example anatomy files provided by the Homer Premium training course. It reported that the index is out of the boundary, the error code is shown below.

Thanks in advance and best regards.

索引超出数组元素的数目(2)。

出错 runMCXlab (line 247)
            tiss_prop(3).absorption(iWav) tiss_prop(3).scattering(iWav) tiss_prop(3).anisotropy(1)
            tiss_prop(3).refraction(1)

出错 AtlasViewerGUI>menuItemRunMCXlab_Callback (line 3371)
fwmodel = runMCXlab( fwmodel, probe, dirnameSubj);

出错 gui_mainfcn (line 95)
        feval(varargin{:});

出错 AtlasViewerGUI (line 19)
    gui_mainfcn(gui_State, varargin{:});

出错
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)AtlasViewerGUI('menuItemRunMCXlab_Callback',hObject,eventdata,guidata(hObject)) 
计算 Menu Callback 时出错。
5 Replies
Yichuan Jiang
Posts: 6
Topic starter
(@yichuan-jiang)
Active Member
Joined: 8 months ago

I also tried to use SPM to generate the MRI input files, but it's reported that the input file are invalid.

 The input files were generated by SPM in native space and warped tissues are modulated.

Non of these files can be used in importing MRI anatomy.

Reply
Giulia Rocco
Posts: 2
(@giulia-rocco)
New Member
Joined: 4 weeks ago

Hi,

I have exactly the same error. Did you manage to fix it?

Thank you in advance!

Reply
Giulia Rocco
Posts: 2
(@giulia-rocco)
New Member
Joined: 4 weeks ago

I have values of tissue properties only for skin and gray matter. It seems the code is expecting values for other 2 tissues not contained in fwmodel.headvol.tiss_prop (which makes sense as a five layers model is used...)

Reply
David Boas
Posts: 237
(@dboas)
Reputable Member
Joined: 2 years ago

I've asked Yuanyuan Gao to see if she can reproduce this error. More soon.

Reply
Page 1 / 2
Share:
en_USEnglish