# 3D slicer for US segmentation

**URL:** <https://discourse.slicer.org/t/3d-slicer-for-us-segmentation/34526>\
**Category:** Support\
**Created:** [February 25, 2024, 2:13pm UTC](https://discourse.slicer.org/t/3d-slicer-for-us-segmentation/34526 "2024-02-25T14:13:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ungi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ungi/32/78573_2.png) [@ungi](https://discourse.slicer.org/u/ungi)\
**Post date:** [February 25, 2024, 5:39pm UTC](https://discourse.slicer.org/t/3d-slicer-for-us-segmentation/34526/3 "2024-02-25T17:39:27Z")

</div>

I think segmentation itself is best done outside of Slicer. I used to install TensorFlow and PyTorch in Slicer’s python environment and run segmentation in Slicer, but then it seemed better to run segmentation in everyone’s favorite AI environment, and communicate with Slicer via OpenIGTLink. You can stream the ultrasound images from Slicer or PLUS to an Anaconda environment and receive the segmentations back in Slicer (or whatever your application is) nearly real time.

I still use Slicer for manual segmentations, for generating training data. Like this: [https://youtu.be/zlrUFaP9q1w?si=4UgkGDA9U\_Jpyz5S](https://youtu.be/zlrUFaP9q1w?si=4UgkGDA9U_Jpyz5S)

And Slicer is great for visualization, 3D volume reconstruction (if you track your ultrasound images), and providing a custom user interface if necessary for clinical users.

For ultrasound segmentation AI training, I’m using this code (under development): [aigt/UltrasoundSegmentation at master · SlicerIGT/aigt (github.com)](https://github.com/SlicerIGT/aigt/tree/master/UltrasoundSegmentation)

---

_[View the full topic](https://discourse.slicer.org/t/3d-slicer-for-us-segmentation/34526)._
