I would like to create a surface mesh from 3D dicom images using MATLAB's Image Processing Toolbox. These are the steps:

1. Read DICOM images:  

<http://www.mathworks.com/company/newsletters/articles/accessing-data-in-dicom-files.html>
2. Segment image:  

<http://www.mathworks.com/matlabcentral/fileexchange/4879-mri-brain-segmentation>
3. Create surface mesh: ??

My question is, how can I create a surface mesh from the segmented image data?