# Segmentation visible only in 3D

**URL:** <https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [January 27, 2019, 4:45pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530 "2019-01-27T16:45:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 27, 2019, 4:45pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/1 "2019-01-27T16:45:17Z")

</div>

Operating system: Windows 10  
Slicer version:4.10.1 (tried also with 4.10.0)  
Expected behavior: see segmentation in 2D  
Actual behavior: can see only in 3D!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/0/d025fd322d10f336b3d496128c1329ab24ea6098.png)

Hi

please help me. Unfortunately, the software does not show the painted segment on the 2D screen, just on the 3D. Do you know how can I fix this? It is crucial to me to see them since I need to make a high-resolution segmentation of the hand. Thanks

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/5/d5495ac47072da8ee5e9fa4bd4ce2e850388acc7.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:** [January 27, 2019, 4:51pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/2 "2019-01-27T16:51:31Z")

</div>

Segmentation can be hidden at 6 places in Segmentations module - check all of them!

- overall hidden
- overall hidden slice view
- overall fully transparent slice view
- overall not shown in a view
- segment-specific hidden slice view
- segment-specific fully transparent slice view

Click on the image below to see all these controls highlighted:

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

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 27, 2019, 4:58pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/3 "2019-01-27T16:58:53Z")

</div>

Dear Andras,

Unfortunately I have this weird situation

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

Thanks so much for your help!

---

<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:** [January 27, 2019, 5:00pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/4 "2019-01-27T17:00:51Z")

</div>

Could you please choose a segment to see if visibility is not turned off for specific segments?  
Could you also show a screenshot that shows the slices in the 3D view (to make sure they overlap)?

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 27, 2019, 5:05pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/5 "2019-01-27T17:05:57Z")

</div>

Sure!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/b/8b0d6591b7b6367c07d83fe87c1a6c44cc2fc95d.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7b5624ea351796ba845b653a5eabb2201fe3b392.png)

I hope they are ok.

---

<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:** [January 27, 2019, 5:39pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/6 "2019-01-27T17:39:08Z")

</div>

How did you create the segmentation? Maybe the segmentation only contain closed surface representation. If that’s the case, either change “Representation in 2D views” to “Closed surface” (or create a binary labelmap representation by clicking on “Create” button in “Binary labelmap” row in Representations section).

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 27, 2019, 5:50pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/7 "2019-01-27T17:50:07Z")

</div>

> [@lassoan](#):
>
> (or create a binary labelmap representation by clicking on “Create” button in “Binary labelmap” row in Representations

I just clicked the “add segment button” in the segment editor… after a while it did not shown up the segmentation in 2D… I did not do anything…

I tried but apparently it does not work

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/9/a9752b25de72de50c98acbc5c2a4b370f19f51d3.png)

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 27, 2019, 6:06pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/8 "2019-01-27T18:06:59Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7bba26169763321052d6498204d4850efa4d7f49.png)

an interesting thing (maybe) is that if I load the saved data from on a new project (where the" 2d edit view" is functioning) i can t change the position of the slice. It is fixed at the left as in the picture

---

<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:** [January 27, 2019, 6:22pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/9 "2019-01-27T18:22:42Z")

</div>

You need to load a volume to be able to position slice viewers with the slider at the top (you can still position slice views by Shift+MouseMove in the 3D viewer).

How did you create the segmentation?  
What would you like to do (edit the segmentation, compute statistics, …)?

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 27, 2019, 6:55pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/10 "2019-01-27T18:55:18Z")

</div>

From the **Segment Editor** I just click on the **Add** button… after nearly 12 bones, the segmentation in 2D disappeared.

If I open a new model, it works perfectly.

I need the model to calculate the electromagnetic distributions of currents in the hand. I need to make a precise hand segmentation in order to have reliable values.

I am new to this software. I find it awesome, but this is bad, because after 6 hours of work probably now I can’t see another solution if not start from scratch

---

<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:** [January 27, 2019, 10:22pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/11 "2019-01-27T22:22:24Z")

</div>

We need to be able to reproduce the problem that you are experiencing to be able to help. Could you record a screen capture video and share that (or give step-by-step description of what you do exactly)?

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 28, 2019, 7:34am UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/12 "2019-01-28T07:34:32Z")

</div>

Dear Andras, I uploaded here the way I did. Basically, I just added segments, used the threshold, painted the segment (sometimes I used fill between the slices) and in the end of the process I used the smoothing tools (one time for each segment, so for each bone).

I am wondering if there’s an upper limit to the number of segments one can make.

PS my project is a master thesis  
PPS I m going to delete that video on youtube as soon as this is solved

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 29, 2019, 12:59pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/13 "2019-01-29T12:59:31Z")

</div>

ok, I was able to fix the problem just by taking the old segments in a new segmentation!  
Since a friend of mine had the same problem, I decided to post the solution

Go to data and drag and drop the segments in a new segmentation (I started from scratch a new segmentation, then did that and it worked)

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

If you understand why (sorry I m new to Slicer) maybe you could explain to me, truly thanks for your time!

---

<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:** [January 30, 2019, 1:15am UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/14 "2019-01-30T01:15:28Z")

</div>

I don’t see any issue in the video above (segments are still visible in the slice views).

Note that you can probably segment the image probably 10x faster if after settings threshold range form masking, you paint a small piece in each bone then use Grow from seeds effect to create a complete segmentation.

---

<div class="post-metadata">

**Author:** ![David\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/david_m/32/3727_2.png) [@David\_M](https://discourse.slicer.org/u/David_M)\
**Post date:** [January 30, 2019, 3:08pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/15 "2019-01-30T15:08:45Z")

</div>

Yes, in the youtube video I just show how I did as you asked me. After few hours of work like that the segments in the 2D screens disappeared.

Yes I know the grow from seed effect, but unfortunately to make a precise work it’s difficult unfortunately (segmentation of all blood vessels, tendons, fat and so on) from a 1T MRI (too low resolution I guess)… I tried but I always have overlapping and weird boundaries

---

<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:** [January 30, 2019, 7:39pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/16 "2019-01-30T19:39:38Z")

</div>

Thanks for the clarification.

If you send one of the scenes file where the segments are not visible in 2D then I would investigate why it could happen.

---

<div class="post-metadata">

**Author:** ![dmarquette](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dmarquette](https://discourse.slicer.org/u/dmarquette)\
**Post date:** [April 22, 2021, 9:40am UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/17 "2021-04-22T09:40:01Z")

</div>

Hi!

I have the exact same problem:

Operating System: Ubuntu 20.04.2 LTS  
Slicer version: 4.11.20210226  
Expected behavior: see segmentation in 2D  
Actual behavior: can only see segmentation in 3D (even after checking all 6 locations in the Segmentations module)

 ![invisible_segment](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/8/c89fed4c40b46accc5efa4d5a4ccd887a4eb763a.png)

Context: The segmentation has been generated by a deep neural network. Its dimensions match the dimensions of the CT scans.

@lassoan I can send you the files if you have time to look at it.

Thank you so much for your help 🙂 !

---

<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 22, 2021, 12:07pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/18 "2021-04-22T12:07:25Z")

</div>

Yes, please save the scene as .mrb file, upload it somewhere, post the link here, and I’ll have a look.

---

<div class="post-metadata">

**Author:** ![dmarquette](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dmarquette](https://discourse.slicer.org/u/dmarquette)\
**Post date:** [April 23, 2021, 8:22am UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/19 "2021-04-23T08:22:25Z")

</div>

Here’s the link of the scene saved as an .mrb [file](https://drive.google.com/file/d/1texx1MC8MXAZ_rrw1UnBB759gXe7OmVg/view?usp=sharing).  
I appreciate your help !

---

<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 23, 2021, 1:38pm UTC](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530/20 "2021-04-23T13:38:42Z")

</div>

You don’t see the segments in slice views, because slice views bounds are set to the background volume by default, and the volume is very far from the segmentation:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/1/b14373d8380eab61ac516f984ecb6bbf3e50807c.png)

You can force your slice viewers to show the segmentation by choosing [“Jump slices - centered” crosshair mode](https://slicer.readthedocs.io/en/latest/user_guide/user_interface.html#view-cross-reference) and moving the mouse over to the segmentation in 3D view while holding down Shift key.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/8/38f8fffa67cce70979e56e230aff7d0a2110b423.png)

This issue happens because the geometry if the segmentation is incorrect: the segments have (0,0,0) origin and (1,1,1) spacing. It may also cause problems elsewhere that its scalar type is float. How did you create this segmentation?

[Next page](https://discourse.slicer.org/t/segmentation-visible-only-in-3d/5530.md?page=2)
