Code covered by the BSD License  

Highlights from
Medical Image Processing Toolbox

image thumbnail

Medical Image Processing Toolbox

by

 

Classes and functions for N-dimensional medical image processing, inspired by ITK

write_CubitMesh(filenameFac,m)
function write_CubitMesh(filenameFac,m)
% Function for reading a mesh in a Visualization Toolkit (VTK) format
%
% mesh  = read_vtkMesh(filename);
%
% examples:
%   mesh=read_vtkMesh('volume.vtk');
%   mesh would be of the class MeshType





dlmwrite(filenameFac,m.npoints)
dlmwrite(filenameFac,[1:m.npoints ;  m.points']','-append','delimiter','\t');

dlmwrite(filenameFac,m.ntriangles,'-append','delimiter','\t')
dlmwrite(filenameFac,[1:m.ntriangles ;  m.triangles']','-append','delimiter','\t');

end

Contact us