# Beginner question: liver volumetry

**URL:** <https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887>\
**Category:** Support\
**Tags:** liver\
**Created:** [January 21, 2024, 1:08am UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887 "2024-01-21T01:08:49Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [February 20, 2025, 8:54am UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/22 "2025-02-20T08:54:24Z")

</div>

@johny723, make sure that your resection surface markup completely exceeds the liver parenchyma all around. The underlying algorithm for volume calculation can leak if the resection does not mark a clear delimitation between resected/remnant tissue. As far as I can see, the rest of your parameters look correct. Below an example where it works (note that my resection goes well beyond the liver parenchyma).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/9/69df1a7b38269514d4f7785ef3e7b8ca61a77b85.jpeg)

---

<div class="post-metadata">

**Author:** ![johny723](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@johny723](https://discourse.slicer.org/u/johny723)\
**Post date:** [February 21, 2025, 1:25am UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/23 "2025-02-21T01:25:59Z")

</div>

Thank you, the points needed to be quite far away from the liver. It is working now!

I have another question. How do I actually resect the liver into 2 parts on each side of the resecion plane? Having a 3d model of the resected part and the remnant would be great. Is it possible to create an arbitrary plane using Bezier surface and then divide the given segment ( liver, spleen, etc, you name it) according to the resection plane? Thank you!

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [February 21, 2025, 9:47am UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/24 "2025-02-21T09:47:33Z")

</div>

@johny723, the points don’t really need to be quite far, you just have to make sure that the boundary of the resection is not inside the parenchyma; leaving a small margin out helps making sure this effectively happens. For visualization purposes, you can (1) compute the distance map, (2) select the newly generated distance map for the resection and (3) mark the “Preview resection” box. This will cut off the excess of the resection for a better visualization.

In the volumetry section of Slicer-Liver you can use the “Generate Segments…” button to generate the segmentation with individual separated segments. Here is a picture leveraging on all features you ask:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/a/7a87675c5a95acca413324331ea40c2ac8e97855.jpeg)

---

<div class="post-metadata">

**Author:** ![johny723](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@johny723](https://discourse.slicer.org/u/johny723)\
**Post date:** [March 10, 2025, 7:14pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/25 "2025-03-10T19:14:34Z")

</div>

Sorry for a delayed answer.

I dont have any " Generate segments based on selected resections and ROI markers" button on my screen.

Wh

 ![Snímka obrazovky 2025-03-10 200713](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/f/ef4b7d1734b16553d5ee490e6685f1f8b20581a3.png)  
at am I doing wrong?

---

<div class="post-metadata">

**Author:** ![johny723](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@johny723](https://discourse.slicer.org/u/johny723)\
**Post date:** [March 10, 2025, 7:29pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/26 "2025-03-10T19:29:55Z")

</div>

What do I have to do to make the “Generate segments…” appear?  
Could you please make a step by step tutorial?

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [March 18, 2025, 12:06pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/27 "2025-03-18T12:06:35Z")

</div>

The documentation for Slicer-Liver is at [GitHub - ALive-research/Slicer-Liver: 3D Slicer extension for liver analysis and therapy planning](https://github.com/ALive-research/Slicer-Liver), with a walk-through of of all the functionality of the extension.

The image below, which is extracted from the documentation highlights the button to generate the segments:

 ![Slicer-Liver_screenshot_23](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/a/fa0919eac2da8e828a2559136dda3b8965dadaa8.jpeg)

Make sure you have the latest version of Slicer and Slicer-Liver as this functionality has been recently added. This may explain if you did not find the button.

---

<div class="post-metadata">

**Author:** ![ThomasHusson](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thomashusson/32/68560_2.png) [@ThomasHusson](https://discourse.slicer.org/u/ThomasHusson)\
**Post date:** [March 28, 2025, 7:07pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/28 "2025-03-28T19:07:23Z")

</div>

For those who used TotalSegmentator : just add English subtitles on my YouTube Tutorial :

[![](https://img.youtube.com/vi/FywayDfP9t0/maxresdefault.jpg "Liver Volumetry Using 3DSlicer - Tutorial") ](https://www.youtube.com/watch?v=FywayDfP9t0)

---

<div class="post-metadata">

**Author:** ![psychicpotato](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/psychicpotato/32/8303_2.png) [@psychicpotato](https://discourse.slicer.org/u/psychicpotato)\
**Post date:** [April 3, 2025, 6:33pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/29 "2025-04-03T18:33:54Z")

</div>

Hey @RafaelPalomar

Sorry to bug you on this, but I’m having the same problem @johny723 is experiencing. While being able to resect the liver using the curved plane, and calculating the volume of the resected segments in the volumetry module (the output table reads nicely), I’m unable to find get the ‘Generate segments based on selected resections and ROI markers’ button to appear.

I’m currently running Slicer 5.8.1, and running the SlicerLiver extension a767755.

Any pointers are hugely appreciated! Thanks so much.

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [April 4, 2025, 10:20am UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/30 "2025-04-04T10:20:21Z")

</div>

Hello @psychicpotato. I’ve been reviewing this case and I have pushed some changes to Slicer-Liver. These changes should enable the missing button. The extension will be most likely available from tomorrow, when a new build is triggered. I’ll check on Monday to make sure everything’s in order.

---

<div class="post-metadata">

**Author:** ![psychicpotato](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/psychicpotato/32/8303_2.png) [@psychicpotato](https://discourse.slicer.org/u/psychicpotato)\
**Post date:** [April 4, 2025, 1:22pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/31 "2025-04-04T13:22:03Z")

</div>

Amazing - thanks so much @RafaelPalomar!

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [April 7, 2025, 10:36am UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/32 "2025-04-07T10:36:11Z")

</div>

@johny723, @psychicpotato. I tested the extension earlier this morning and it builds now with the segmentation separation based on a resection. We are currently working on a video tutorial, however, there are written instructions at [https://github.com/ALive-research/Slicer-Liver?tab=readme-ov-file#resection-volumetry](https://github.com/ALive-research/Slicer-Liver?tab=readme-ov-file#resection-volumetry).

Let me know if this works for you.

---

<div class="post-metadata">

**Author:** ![psychicpotato](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/psychicpotato/32/8303_2.png) [@psychicpotato](https://discourse.slicer.org/u/psychicpotato)\
**Post date:** [April 7, 2025, 6:51pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/33 "2025-04-07T18:51:50Z")

</div>

Hey @RafaelPalomar - Fantastic! Working as intended, I’m able to see the button, transect the volume into 2 separate segmentations, and output the resulting OBJ files. Thanks so much for the quick turnover!!

---

<div class="post-metadata">

**Author:** ![johny723](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@johny723](https://discourse.slicer.org/u/johny723)\
**Post date:** [April 10, 2025, 8:26pm UTC](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887/34 "2025-04-10T20:26:34Z")

</div>

It finally works. Thank you!

[Previous page](https://discourse.slicer.org/t/beginner-question-liver-volumetry/33887.md?page=1)
