# Create segmentation from simpleItk Image

**URL:** <https://discourse.slicer.org/t/create-segmentation-from-simpleitk-image/6723>\
**Category:** Development\
**Tags:** segmentation, extensions-manager, python\
**Created:** [May 7, 2019, 4:51pm UTC](https://discourse.slicer.org/t/create-segmentation-from-simpleitk-image/6723 "2019-05-07T16:51:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n2018](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/n2018/32/3287_2.png) [@n2018](https://discourse.slicer.org/u/n2018)\
**Post date:** [May 7, 2019, 4:51pm UTC](https://discourse.slicer.org/t/create-segmentation-from-simpleitk-image/6723/1 "2019-05-07T16:51:40Z")

</div>

Hello! Could you please help me, is there a way to create a new segmentation and add asegment into it from simpleItk Image object (I mean the way through the python code)

---

<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:** [May 7, 2019, 10:41pm UTC](https://discourse.slicer.org/t/create-segmentation-from-simpleitk-image/6723/2 "2019-05-07T22:41:02Z")

</div>

You can read the SimpleITK image into a temporary labelmap volume node, [import the labelmap volume node into the segmentation](http://apidocs.slicer.org/master/classvtkSlicerSegmentationsModuleLogic.html#adf111c9bcd3ceb28d49028f6fc6a2506), then delete the labelmap volume node.

You can also use SimpleITK to create additional effects in Segment Editor. See an example of a SimpleITK-based segment editor effect here: [https://github.com/lassoan/SlicerSegmentEditorExtraEffects/tree/master/SegmentEditorWatershed](https://github.com/lassoan/SlicerSegmentEditorExtraEffects/tree/master/SegmentEditorWatershed)
