# Improvement display 3d

**URL:** <https://discourse.slicer.org/t/improvement-display-3d/5940>\
**Category:** Support\
**Created:** [February 27, 2019, 7:03am UTC](https://discourse.slicer.org/t/improvement-display-3d/5940 "2019-02-27T07:03:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dp1991](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dp1991/32/3142_2.png) [@dp1991](https://discourse.slicer.org/u/dp1991)\
**Post date:** [February 27, 2019, 7:03am UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/1 "2019-02-27T07:03:21Z")

</div>

hi friends  
i segmented ct images, and output labeled as 50(Esophagus) 100(Heart) 150(Lung\_L) 200(Lung\_R) 250 (Spinal Cord)…  
now i will display any organ with one color ( for example heart show red and Lung\_L show blue , etc)  
for this purpose, i use volume properties as attached image  
output display is not clear …  
how can i display output that any organ display exactly one color with High transparency

 ![rfer](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/c/6c6e7060926e829a1b2803a742f77b85e1f40480.png)

---

<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 27, 2019, 1:43pm UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/2 "2019-02-27T13:43:19Z")

</div>

Hi -

You probably want to approach this differently. You can import your label volume as a Slicer [Segmentation](https://www.slicer.org/wiki/Documentation/4.10/Modules/Segmentations) and then enable the 3D display.

---

<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 27, 2019, 1:56pm UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/3 "2019-02-27T13:56:31Z")

</div>

To do that easily, right-click the labelmap node in the Data module, and select “Convert labelmap to segmentation node”. Then right-click on the new segmentation node, choose Edit properties (it will take you to the Segmentations module, same as @pieper pointed to), and click Create in the Closed surface row in the Representations section. Then the 3D display will show up.

---

<div class="post-metadata">

**Author:** ![dp1991](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dp1991/32/3142_2.png) [@dp1991](https://discourse.slicer.org/u/dp1991)\
**Post date:** [February 28, 2019, 6:25am UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/4 "2019-02-28T06:25:54Z")

</div>

i have a series dicom image  
i segmented 5 organ with hand ( lung\_L, lung\_R ,heart,spinal cord , esophagus ) in vs2015  
and save output such as 3D.mha  
and open this volume with 3D Slicer 4.8.1  
and i try display output that one organ show with one color  
i chose volume rendering and show 3D output and i do volume properties  
on the 3d output, i see a dark line  
but i will, can see a smooth surface ,  
for example lung\_L being red, Without any black line  
@pieper thanks for your answer, but a don’t understand your answer  
@cpinter i don’t find this option that you said, can u show me steps with picture ??  
( my English is not well, i hope u understand my mean)

---

<div class="post-metadata">

**Author:** ![dp1991](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dp1991/32/3142_2.png) [@dp1991](https://discourse.slicer.org/u/dp1991)\
**Post date:** [February 28, 2019, 8:38am UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/5 "2019-02-28T08:38:02Z")

</div>

@cpinter , @pieper thanks for your guidance  
i can solve this problem in slicer  
how to can i implement this operation in vtk or itk ??  
i segmented with my approach ( deep learning, region growing and etc)  
i write result output with itk in result folder  
final result save as 3D.mha file , any organ have one value (mention above)  
how can i display this output witk vtk in my C++ ( VS2015 ) code, such as closed surface ??  
below link is 3D.mha  
[https://ufile.io/n3cjh](https://ufile.io/n3cjh)

---

<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 28, 2019, 2:53pm UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/6 "2019-02-28T14:53:09Z")

</div>

You can use the convenience functions in the API. For example:

> <https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/Logic/vtkSlicerSegmentationsModuleLogic.h#L197-L201>

---

<div class="post-metadata">

**Author:** ![dp1991](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dp1991/32/3142_2.png) [@dp1991](https://discourse.slicer.org/u/dp1991)\
**Post date:** [March 2, 2019, 5:05am UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/7 "2019-03-02T05:05:50Z")

</div>

@cpinter thank u for tour answer …🙂

---

<div class="post-metadata">

**Author:** ![dp1991](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dp1991/32/3142_2.png) [@dp1991](https://discourse.slicer.org/u/dp1991)\
**Post date:** [March 4, 2019, 9:09am UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/8 "2019-03-04T09:09:06Z")

</div>

hi  
my input is 3D.mha [https://ufile.io/n3cjh](https://ufile.io/n3cjh)  
my output is image1  
and i will to display as image2  
how to i do it ?  
what is equal VTK function for this process ??

![image1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/3/6324308cb574aa63c42621adbcdbfcc044a36739.jpeg)

---

<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:** [March 4, 2019, 1:46pm UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/9 "2019-03-04T13:46:20Z")

</div>

> [@dp1991](#):
>
> what is equal VTK function for this process ??

Slicer is open-source, you are free to inspect its code to see how it is implemented and even take any code and reuse it in another project.

---

<div class="post-metadata">

**Author:** ![dp1991](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dp1991/32/3142_2.png) [@dp1991](https://discourse.slicer.org/u/dp1991)\
**Post date:** [March 5, 2019, 12:25pm UTC](https://discourse.slicer.org/t/improvement-display-3d/5940/10 "2019-03-05T12:25:05Z")

</div>

@lassoan  
hank you very much  
my previous problem solved by one example of VTK’s documentation  
( [VTK User Manual](https://discourse.slicer.org/t/vtk-user-manual/6003) )
