# Exporting outlines of segmented objects

**URL:** <https://discourse.slicer.org/t/exporting-outlines-of-segmented-objects/5771>\
**Category:** Support\
**Created:** [February 13, 2019, 10:38pm UTC](https://discourse.slicer.org/t/exporting-outlines-of-segmented-objects/5771 "2019-02-13T22:38:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telfer](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@Telfer](https://discourse.slicer.org/u/Telfer)\
**Post date:** [February 13, 2019, 10:38pm UTC](https://discourse.slicer.org/t/exporting-outlines-of-segmented-objects/5771/1 "2019-02-13T22:38:25Z")

</div>

I have set of previously segmented knee bones from MRI. In each slice, the segmented area is filled. I’d like to export the outline (external curve) of each segment for each slice in a specific plane, ideally as a list of 3D points.

I can export the solid models and work backwards from these to get the outlines, but was hoping that there was a quicker way to do this within Slicer?

Thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 14, 2019, 3:01pm UTC](https://discourse.slicer.org/t/exporting-outlines-of-segmented-objects/5771/2 "2019-02-14T15:01:29Z")

</div>

You can use the hollow effect to get the surface. Then if you want the coordinates of the points you can export to labelmap and use numpy.where.

> [@New segment editor effect for creating hollow objects](https://discourse.slicer.org/t/new-segment-editor-effect-for-creating-hollow-objects/2464):
>
> Making a solid segment hollow is useful in many applications, such as creating 3D-printable vessel walls from contrast-CT volumes. While it was possible to create hollow segments in 3D Slicer by using Margins and Logical operators effect, it was not very convenient. A new effect - Hollow - has been added to Segment editor to create hollow objects from solid objects in one simple step. Short demo video: [[Make hollow - new segment editor effect in 3D Slicer] ](https://www.youtube.com/watch?v=jtDHTaAEilU)
