# Create a set of planar contours from IRM images

**URL:** <https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084>\
**Category:** Development\
**Tags:** segmentation, extensions-manager, dicom\
**Created:** [February 3, 2020, 2:01pm UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084 "2020-02-03T14:01:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![loubna](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@loubna](https://discourse.slicer.org/u/loubna)\
**Post date:** [February 3, 2020, 2:01pm UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084/1 "2020-02-03T14:01:58Z")

</div>

Hi every one;

I have some ambiguities about segmentation of IRM images in Slicer 3D. I want to get a set of planar 2D contours. If i segment the ROI using segemnt editor (manually segmentation or semi-automatically). I get as master representation labelMap. But I need the planar contours.

I may be need to install the slicerRt extension but what are the different steps please to segment the set of IRM images and get the set of 2D contours. (i need the planar contours as representation master and not a labelMap).

I found many tutorial about planar contours but with CT images, but i Have IRM images of brain. Bref I am confused between the different steps.

Thanks in advance for you helps

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [February 4, 2020, 4:15pm UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084/3 "2020-02-04T16:15:35Z")

</div>

> [@loubna](#):
>
> I may be need to install the slicerRt extension

Your hunch is right, SlicerRT has this function. It’s not that trivial, so it’s good you asked. Currently there is no built-in conversion to planar contours in Segmentations, but it is possible to do via DICOM RTSS export. Make sure you have a valid patient and study in the Data module, and have the master volume and your segmentation under the study. Right-click study, choose Export to DICOM, then make sure RT is selected as export type. The image will be re-exported (see details [here](https://discourse.slicer.org/t/export-rtstruct-referencing-original-volume/9771)), but you will have an RTSS series. Load it in Slicer, and then you’ll have the planar contours. Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![loubna](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@loubna](https://discourse.slicer.org/u/loubna)\
**Post date:** [February 6, 2020, 2:50pm UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084/4 "2020-02-06T14:50:25Z")

</div>

It works like charm thank you so much

---

<div class="post-metadata">

**Author:** ![loubna](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@loubna](https://discourse.slicer.org/u/loubna)\
**Post date:** [April 30, 2020, 9:42am UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084/5 "2020-04-30T09:42:55Z")

</div>

How can I visualize the 3D reconstructed surface from the planar contours in 3D slicer (for exemple in 3d Slicer, we can visualize the 3D surface reconstructed from the labelMap, by clicking on view 3D which execute the marching cubes (i.e flying edges) . what about planar contours?

thank’s in advance

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 30, 2020, 10:49am UTC](https://discourse.slicer.org/t/create-a-set-of-planar-contours-from-irm-images/10084/6 "2020-04-30T10:49:17Z")

</div>

Please create a new topic so that separate questions can be discovered more easily. Thanks
