# Saving ultrasound images (stream of images) in a volume

**URL:** <https://discourse.slicer.org/t/saving-ultrasound-images-stream-of-images-in-a-volume/29403>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [May 10, 2023, 4:04pm UTC](https://discourse.slicer.org/t/saving-ultrasound-images-stream-of-images-in-a-volume/29403 "2023-05-10T16:04:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mary\_89](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@Mary\_89](https://discourse.slicer.org/u/Mary_89)\
**Post date:** [May 10, 2023, 4:04pm UTC](https://discourse.slicer.org/t/saving-ultrasound-images-stream-of-images-in-a-volume/29403/1 "2023-05-10T16:04:07Z")

</div>

Hi everyone,

I have a question regarding how to save a stream of images that I receive in 3D Slicer in a volume. I want to use this volume of images to navigate through each slice and manually segment my images. I am sending the Ultrasound images and position data by OpenIGTLink to the slicer and I can reconstruct the 3D volume from the stream. The problem is that the reconstructed volume does not have the original images and it just includes slices that come from reconstruction. However, I need to annotate the original US images. I have checked the Sequence module in 3D slicer and it seems it is not what I am looking for. Because I would like to save all the slices that I receive without manually initiating the start and stop time and changing the sampling rate.

I am new to 3D Slicer, so any help would be appreciated.

Thanks

---

<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:** [May 12, 2023, 9:38pm UTC](https://discourse.slicer.org/t/saving-ultrasound-images-stream-of-images-in-a-volume/29403/2 "2023-05-12T21:38:42Z")

</div>

Hi Mary,

Sequences is the right module to save US images in real time as they arrive in Slicer through OpenIGTLink. Sequences allows you to save and load all data with the Slicer scene. If by annotations you mean segmentation, then I recommend that you check out this module: [aigt/SlicerExtension/LiveUltrasoundAi/SingleSliceSegmentation at master · SlicerIGT/aigt · GitHub](https://github.com/SlicerIGT/aigt/tree/master/SlicerExtension/LiveUltrasoundAi/SingleSliceSegmentation)  
There is an earlier version of the module in this video: [Fast ultrasound segmentation for generating AI training data - YouTube](https://youtu.be/zlrUFaP9q1w)  
You need to create a new sequence browser and save the segmentations along with the original ultrasound images. Single Slice Segmentation just makes it more convenient and also provides export function to numpy array files.  
Alternatively, you could convert your data into a 3D volume so the 3rd dimension is time, but it’s better to use Sequences for time series data.

I hope this helps,  
Tamas

---

<div class="post-metadata">

**Author:** ![Mary\_89](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@Mary\_89](https://discourse.slicer.org/u/Mary_89)\
**Post date:** [May 15, 2023, 4:18am UTC](https://discourse.slicer.org/t/saving-ultrasound-images-stream-of-images-in-a-volume/29403/3 "2023-05-15T04:18:53Z")

</div>

Hi Tamas,

Thank you so much for your explanation. I have just tested the sequences module as you explained and it is what I needed.

Best,  
Mary
