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

m =read_CubitMesh(filenameFacets,filenameTESS)
function m =read_CubitMesh(filenameFacets,filenameTESS)
% 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



points = importdata(filenameFacets,' ',1);
%points.data
triangles= importdata(filenameTESS,' ',1);

m = MeshType();
m.points = points.data;
m.triangles= triangles.data;
m.npoints = size(points.data,1);
m.ntriangles= size(triangles.data,1);

end

Contact us