# Color another surface

**URL:** <https://discourse.slicer.org/t/color-another-surface/2860>\
**Category:** Support\
**Created:** [May 21, 2018, 12:14pm UTC](https://discourse.slicer.org/t/color-another-surface/2860 "2018-05-21T12:14:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boyce\_Doyle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/boyce_doyle/32/66031_2.png) [@Boyce\_Doyle](https://discourse.slicer.org/u/Boyce_Doyle)\
**Post date:** [May 21, 2018, 12:14pm UTC](https://discourse.slicer.org/t/color-another-surface/2860/1 "2018-05-21T12:14:14Z")

</div>

Operating system:Unbuntu16.04.3  
Slicer version:4.8.1-linux-amd64  
Expected behavior:I have two 3d-mri images(assume they are a and b) and a segmentation from volume a.I want to using the gray intensity from b to make a color-show for the segmentation surface(using the vertex gray intensity). Thank you for a solution.  
Note:1. Only the surface will show. The body of the segmentation will be discarded.  
2. The vertex will be colored in outshow.–My biggest chanllenge.  
Actual behavior:

---

<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:** [May 21, 2018, 12:35pm UTC](https://discourse.slicer.org/t/color-another-surface/2860/2 "2018-05-21T12:35:03Z")

</div>

It sounds like you are looking for this:

[https://www.slicer.org/wiki/Documentation/4.8/Modules/ProbeVolumeWithModel](https://www.slicer.org/wiki/Documentation/4.8/Modules/ProbeVolumeWithModel)

---

<div class="post-metadata">

**Author:** ![Boyce\_Doyle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/boyce_doyle/32/66031_2.png) [@Boyce\_Doyle](https://discourse.slicer.org/u/Boyce_Doyle)\
**Post date:** [May 22, 2018, 12:33am UTC](https://discourse.slicer.org/t/color-another-surface/2860/3 "2018-05-22T00:33:33Z")

</div>

Thank you for your patient solution. A bit more, can we use some features of segmentation or label classes to bypass the model using?  
I hope more automatic.

---

<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 22, 2018, 2:58am UTC](https://discourse.slicer.org/t/color-another-surface/2860/4 "2018-05-22T02:58:07Z")

</div>

You can export segmentation to models and run ProbeVolumeWithModel by writing a few lines of Python script.

These examples should help:  
[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Export\_model\_nodes\_from\_segmentation\_node](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Export_model_nodes_from_segmentation_node)  
[https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python\_scripting#Running\_a\_CLI\_from\_Python](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python_scripting#Running_a_CLI_from_Python)

---

<div class="post-metadata">

**Author:** ![Boyce\_Doyle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/boyce_doyle/32/66031_2.png) [@Boyce\_Doyle](https://discourse.slicer.org/u/Boyce_Doyle)\
**Post date:** [May 29, 2018, 3:12am UTC](https://discourse.slicer.org/t/color-another-surface/2860/5 "2018-05-29T03:12:35Z")

</div>

Thanks a lot.I solved it.
