# How to visualize a 3D skeleton image

**URL:** <https://discourse.slicer.org/t/how-to-visualize-a-3d-skeleton-image/29155>\
**Category:** Support\
**Tags:** segmentation, visualization\
**Created:** [April 26, 2023, 9:31pm UTC](https://discourse.slicer.org/t/how-to-visualize-a-3d-skeleton-image/29155 "2023-04-26T21:31:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peidi\_Xu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/peidi_xu/32/65779_2.png) [@Peidi\_Xu](https://discourse.slicer.org/u/Peidi_Xu)\
**Post date:** [April 26, 2023, 9:31pm UTC](https://discourse.slicer.org/t/how-to-visualize-a-3d-skeleton-image/29155/1 "2023-04-26T21:31:46Z")

</div>

I have a simple 3D binary in .nii.gz form, where voxel value 1 means foreground and 0 means background. So it is a skeleton because every foreground voxel has a thickness of one, e.g., it is the output after running skimage.morphology.skeletonize\_3d.

I am just wondering what is the best way to visualize such binary image in 3D slicer, because the standard show 3D option in segmentation editor generates very disconnected structures even with smoothing set to 0.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/f/2fac35f3115cda09f1c638f5eedb31a462e40ee6.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 26, 2023, 9:39pm UTC](https://discourse.slicer.org/t/how-to-visualize-a-3d-skeleton-image/29155/2 "2023-04-26T21:39:16Z")

</div>

Image skeletonization is a very limited algorithm that provides relatively inaccurate and non-realistic centerline points (e.g., flow direction and radius is not taken into account), the points are not connected, and radius information is lost.

I would recommend to use Slicer’s [VMTK extension](https://github.com/vmtk/SlicerExtension-VMTK#the-vmtk-extension-for-3d-slicer) to extract centerline trees, which does not have any of the above limitations.
