# Create mesh from binary image

**URL:** <https://discourse.slicer.org/t/create-mesh-from-binary-image/23179>\
**Category:** Support\
**Created:** [April 28, 2022, 4:47pm UTC](https://discourse.slicer.org/t/create-mesh-from-binary-image/23179 "2022-04-28T16:47:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tutti](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tutti/32/15115_2.png) [@Tutti](https://discourse.slicer.org/u/Tutti)\
**Post date:** [April 28, 2022, 4:47pm UTC](https://discourse.slicer.org/t/create-mesh-from-binary-image/23179/1 "2022-04-28T16:47:07Z")

</div>

Hello everyone,

From an airway Dicom image (.hdr) with the background = 0, and airway = 255, I would like to create the mesh to perform simulation later from this image by Slicer3D. After reading some guidance, I used Segment Editor to segment the airway part and export it to model, it has some problems:

1. I used threshold with a range [1:255] to segment the airway (without smoothing), but it does not capture all pixels (Fig1). Is there any other method to obtain mesh image?  
 ![F1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/d/ed26e1833c458a0ba4a00b9c33190677dfa1bc8b.jpeg)
2. After obtaining the segmented image, I used Surface toolbox to smooth the surface of airway mesh with the Taubin method (Fig2) without shrinkage (it is better than Laplacian in my case). Is there any method I can compare with Taubin (from Slicer/VTK code)?  
 ![F2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a88d010708abb04db181cdd76063b54fc543c3c8.jpeg)
3. Is smoothing before creating mesh image or after meshing better?  
Could you please suggest what I might try?

Many thanks,
