by Peter Hammer, Martin Helm, Oliver Woodford, SG-Lib Toolbox: SolidGeometry 5.6 - VM/Voxels
, Creation date: 2015-01-22, Last change: 2025-09-14
See Also: VLFLofVMmarchcube
[V,F,col]=marchingcubes(x,y,z,c,iso,colors)
x: | x of meshgrid | |
y: | y of meshgrid | |
z: | c of meshgrid | |
c: | cubes in voxel model | |
iso: | threshold | |
colors: |
V: | Vertices | |
F: | Faces | |
col: | colors |
V=VMreaddicomdir('AIM_DICOMFILES');
[x,y,z]=meshgrid(1:size(V,1),1:size(V,2),1:size(V,3));
x=single(x); y=single(y); z=single(z);
[VL,FL]=marchingcubes(x,y,z,V,0);