# liver segmentation

**URL:** https://discourse.itk.org/t/liver-segmentation/1752
**Category:** Algorithms
**Created:** [April 5, 2019, 1:28pm UTC](https://discourse.itk.org/t/liver-segmentation/1752 "2019-04-05T13:28:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Marco\_Festugato](https://discourse.itk.org/user_avatar/discourse.itk.org/marco_festugato/32/696_2.png) [@Marco\_Festugato](https://discourse.itk.org/u/Marco_Festugato)
#### Post date: [April 5, 2019, 1:28pm UTC](https://discourse.itk.org/t/liver-segmentation/1752/1 "2019-04-05T13:28:36Z")

</div>

Hi guys, I have to segment the liver in 199 different images of the same patient, any ideas/code/example about the classes/methods i should use?  
Thanks in advance!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [April 5, 2019, 3:48pm UTC](https://discourse.itk.org/t/liver-segmentation/1752/2 "2019-04-05T15:48:09Z")

</div>

In 199 slices of the same 3D volume, or 199 different 3D volumes? If it is the first, I recommend that you use [ITK-SNAP](http://www.itksnap.org/) or [3D Slicer](https://slicer.org/) and do the segmentation semi-automatically. If it is the second, you should look into algorithms developed for that purpose, e.g. [here](http://www.visceral.eu/benchmarks/anatomy3-open/). You can find more liver-related challenges [here](https://grand-challenge.org/challenges/).

---

<div class="post-metadata">

### Author: ![Marco\_Festugato](https://discourse.itk.org/user_avatar/discourse.itk.org/marco_festugato/32/696_2.png) [@Marco\_Festugato](https://discourse.itk.org/u/Marco_Festugato)
#### Post date: [April 5, 2019, 8:19pm UTC](https://discourse.itk.org/t/liver-segmentation/1752/3 "2019-04-05T20:19:07Z")

</div>

Hi dzenanz and thank u for your kind answer. I have 199 DICOM images (of CT abdomen) from the same patient.

I first want to roughly segment the liver because what I really wanna do is the segmentation of the liver vessels… I was thinking about using the confidence connected to segment the liver, what do u think?  
Unfortunately for my project ITK is mandatory, so i cant use 3D slicer…  
Thanks in advance!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [April 5, 2019, 8:30pm UTC](https://discourse.itk.org/t/liver-segmentation/1752/4 "2019-04-05T20:30:24Z")

</div>

That sounds like a school assignment! How about you try a few algorithms and see which one works best?

Look at this [example](https://itk.org/ITKExamples/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/Documentation.html) to see how to read a DICOM series. And this [example](https://itk.org/Doxygen/html/Examples_2Segmentation_2ConfidenceConnected3D_8cxx-example.html) demonstrates how to directly apply a segmentation algorithm. I guess you will have to look at other examples to find one which can accomplish your task:

- [https://github.com/InsightSoftwareConsortium/ITK/tree/master/Examples/Segmentation](https://github.com/InsightSoftwareConsortium/ITK/tree/master/Examples/Segmentation)
- [https://itk.org/ITKExamples/src/Segmentation/index.html](https://itk.org/ITKExamples/src/Segmentation/index.html)
- [https://github.com/InsightSoftwareConsortium/ITKWikiExamples/tree/master/Segmentation](https://github.com/InsightSoftwareConsortium/ITKWikiExamples/tree/master/Segmentation)

---

<div class="post-metadata">

### Author: ![Marco\_Festugato](https://discourse.itk.org/user_avatar/discourse.itk.org/marco_festugato/32/696_2.png) [@Marco\_Festugato](https://discourse.itk.org/u/Marco_Festugato)
#### Post date: [April 7, 2019, 12:02pm UTC](https://discourse.itk.org/t/liver-segmentation/1752/5 "2019-04-07T12:02:10Z")

</div>

Hi dzenanz and thank u for your answer! I’ll definitely do it 🙂
