# US vessel segmentation

**URL:** <https://discourse.slicer.org/t/us-vessel-segmentation/25767>\
**Category:** Support\
**Tags:** segmentation, ultrasound\
**Created:** [October 19, 2022, 2:43am UTC](https://discourse.slicer.org/t/us-vessel-segmentation/25767 "2022-10-19T02:43:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whu](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@whu](https://discourse.slicer.org/u/whu)\
**Post date:** [October 19, 2022, 2:43am UTC](https://discourse.slicer.org/t/us-vessel-segmentation/25767/1 "2022-10-19T02:43:49Z")

</div>

Hello, Here I used the US device to scan the femoral vein, and get some MP4 videos.  
The images like this:  
 ![18](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/3/b3b07a9fe398fc973d85273f473f9fa6d9ba57ce.jpeg)  
 ![2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/8/38dad443c0d7cedf88a3cd9a3d146d85cf0b1fb9.jpeg)  
 ![23](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/e/9e970be9d91e882ce3acf5035291775fd47975c2.jpeg)

Now, I want to do the vessel segmetation, especially the traditional method.  
As suggest, get the magnitude of the intensity gradient in SimVascular, but that is CT based data, here is US.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/8/88b87b257cf038a4f1a20b82bb1107be6b14d70c.jpeg)  
please share some suggestions using simple filter and python based package.  
thanks.

---

<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:** [October 19, 2022, 5:09am UTC](https://discourse.slicer.org/t/us-vessel-segmentation/25767/2 "2022-10-19T05:09:26Z")

</div>

Nowadays the most common approach for this kind of segmentation tasks is to train a unet network for this. You can create training data sets using SlicerAIGT extension’s “Single Slice Segmentation” module (it is specifically developed for ultrasound image sequence segmentation). I think there are a number of examples for ultrasound segmentation networks in the [extension’s repository](https://github.com/SlicerIGT/aigt).

Do you track your ultrasound probe (e.g., using an optical or electromagnetic tracker)? If not yet, then you can use [Plus toolkit](http://plustoolkit.org/) for that. It integrates nicely with 3D Slicer.

---

<div class="post-metadata">

**Author:** ![adrianoderosa](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@adrianoderosa](https://discourse.slicer.org/u/adrianoderosa)\
**Post date:** [November 30, 2022, 4:35pm UTC](https://discourse.slicer.org/t/us-vessel-segmentation/25767/3 "2022-11-30T16:35:50Z")

</div>

> [@whu](#):
>
> SimVascular

Dear Andras, I’m new to 3d slice, where can I find a tutorial to create the training dataset for segmentation unet?  
Thank you in advance  
Adriano
