help > inHouse Topology_fix
Sep 28, 2019  07:09 AM | Rizwan Khan - INDIAN INSTITUTE OF SCIENCE BANGALORE
inHouse Topology_fix
Dear all,

I am fixing the topology of my #D binary image so that to remove any bad voxels. I am getting the following error.


Make a simply connected volume by removing bad voxels
(1) outlier or hole, (2) vertex conn., (3) edge conn., (4) ring or hole, (5) s(1) single ring, (2)
Index in position 1 exceeds array bounds.

Error in gen_surf_data (line 121)
vertices = vertices.*vxsize(ones(1,size(vertices,1)),:);
Error in fix_bad_topology (line 91)
[vertices, faces] = gen_surf_data(roi,origin,vxsize);
Error in SpharmMatUtilTopologyFix (line 46)
[bim_new,origin_new,vxsize_new,outNames{end+1}] = fix_bad_topology(file, confs);
Error in SPHARM_MAT>RunTag_Callback (line 659)
SpharmMatUtilTopologyFix(handles.userdata.InHouse_Fix, handles.userdata.inObjs, 'InHouse_Fix');
Error in gui_mainfcn (line 95)
Error in SPHARM_MAT (line 70)
gui_mainfcn(gui_State, varargin{:});
Error while evaluating UIControl Callback.

Please help me out to fix this issue.