# Display both the data and segmentation result in one view

**URL:** <https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [April 24, 2020, 1:05pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290 "2020-04-24T13:05:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrice\_Gaofei](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Patrice\_Gaofei](https://discourse.slicer.org/u/Patrice_Gaofei)\
**Post date:** [April 24, 2020, 1:05pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/1 "2020-04-24T13:05:41Z")

</div>

```
             Dear members of the 3DSlicer community,

```

I am very new to Slicer and I need your help and suggestions for visualizing my segmentation results. In effect, my task consists of a binary segmentation. I would like to represent both the image and predicted result in one view with a color bar to illustrate the performance of my model. An example of such figure is as follows.  
 ![fault](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/b/0b53e75dabbb0baa67b4ea78e93a0f3d7d75db31.png)

Any suggestions and/or comments would be highly appreciated

---

<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:** [April 24, 2020, 1:36pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/2 "2020-04-24T13:36:06Z")

</div>

You can display binary segmentations or if you have a parametric result you can use a scalar volume and add a color table and scalar bar in 3D (see the Volumes and Colors modules). Making the slice planes visible in 3D should give something comparable to the illustration (although to be honest I can’t really parse the example figure well - maybe you can provide more context info).

---

<div class="post-metadata">

**Author:** ![Patrice\_Gaofei](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Patrice\_Gaofei](https://discourse.slicer.org/u/Patrice_Gaofei)\
**Post date:** [April 24, 2020, 4:45pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/3 "2020-04-24T16:45:20Z")

</div>

Dear sir, I am very grateful for your reply. The figure displayed above consists of 3D seismic data with the corresponding segmentation results. I would like to achieve a figure like that using my own data and the prediction results. Please, could you give me some steps to achieve that based on your experience? I am very new to Slicer and I could not find any tutorial or videos related to what I would like to obtain.

Thank you for your time, patience and support.

---

<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:** [April 24, 2020, 6:42pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/4 "2020-04-24T18:42:53Z")

</div>

I don’t think we have any tutorials quite like that, but as I said above, everything should be available. Probably it depends a bit on exactly what format your data is in.

Maybe if you can share data like what you are trying to work with someone can create some screenshots for you just so you know where all the controls are.

---

<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 24, 2020, 6:53pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/5 "2020-04-24T18:53:50Z")

</div>

From what I can see, the computed output is a scalar volume, so it can be set as foreground volume (right-click on the eye icon of the colored volume in Data module) with a nice colormap (you can select colormap in Volumes module), while keeping the grayscale volume as background.

---

<div class="post-metadata">

**Author:** ![Patrice\_Gaofei](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Patrice\_Gaofei](https://discourse.slicer.org/u/Patrice_Gaofei)\
**Post date:** [April 25, 2020, 2:13am UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/6 "2020-04-25T02:13:34Z")

</div>

Thank you sir for your time and suggestions.  
I have converted the data into nii format so that they can be easily uploaded onto Slicer. Please, could we communicate by email?

---

<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:** [April 25, 2020, 4:24pm UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/7 "2020-04-25T16:24:11Z")

</div>

Let’s keep the communication on the forum so that others can find it if similar questions come up in the future.

Can you share the data using dropbox, google drive, or similar?

---

<div class="post-metadata">

**Author:** ![Patrice\_Gaofei](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Patrice\_Gaofei](https://discourse.slicer.org/u/Patrice_Gaofei)\
**Post date:** [April 26, 2020, 8:06am UTC](https://discourse.slicer.org/t/display-both-the-data-and-segmentation-result-in-one-view/11290/8 "2020-04-26T08:06:45Z")

</div>

Thank you sir for your time and patience. A data sample can be accessed using the following link

> **[SAMPLES.zip](https://cloud.tsinghua.edu.cn/f/4c38bf31e2864938bae8/)**
>
> Share link for SAMPLES.zip.

It contains a data sample, the label or mask and the corresponding prediction result. I have used the cloud storage system of my university.

I am very grateful for everything
