# How to get hepatic vein and portal vein in different color or in different segment?

**URL:** <https://discourse.slicer.org/t/how-to-get-hepatic-vein-and-portal-vein-in-different-color-or-in-different-segment/40868>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [December 27, 2024, 12:05pm UTC](https://discourse.slicer.org/t/how-to-get-hepatic-vein-and-portal-vein-in-different-color-or-in-different-segment/40868 "2024-12-27T12:05:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hepato](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@hepato](https://discourse.slicer.org/u/hepato)\
**Post date:** [December 27, 2024, 12:05pm UTC](https://discourse.slicer.org/t/how-to-get-hepatic-vein-and-portal-vein-in-different-color-or-in-different-segment/40868/1 "2024-12-27T12:05:11Z")

</div>

**I use function of**  **“**  **theshold**  **”**  **to get the vessel of liver ,including hepatic vein and portal vein.**  **And then the color of hepatic vein is same with portal vein in same segment.**  **My question is How to get hepatic vein and portal vein in different color ?**  **or how to get hepatic vein or portal vein in different segment ?**  **Any recommendations ?**

---

<div class="post-metadata">

**Author:** ![Deep\_Learning](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deep_learning/32/15345_2.png) [@Deep\_Learning](https://discourse.slicer.org/u/Deep_Learning)\
**Post date:** [December 27, 2024, 2:00pm UTC](https://discourse.slicer.org/t/how-to-get-hepatic-vein-and-portal-vein-in-different-color-or-in-different-segment/40868/2 "2024-12-27T14:00:30Z")

</div>

If you have a good segmentation with both (Seg1), Clone the segmentation (Seg1 and Seg 2 identical). Then use the scissors (or another tool) to remove the portal vein from Seg1. Then Subtract Seg1 from Seg2. Assign different colors to Seg1 and Seg2.

---

<div class="post-metadata">

**Author:** ![hepato](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@hepato](https://discourse.slicer.org/u/hepato)\
**Post date:** [December 29, 2024, 1:01am UTC](https://discourse.slicer.org/t/how-to-get-hepatic-vein-and-portal-vein-in-different-color-or-in-different-segment/40868/3 "2024-12-29T01:01:19Z")

</div>

Thanks for your answer!
