# Create a volume from a stack of non parallel slices

**URL:** https://discourse.vtk.org/t/create-a-volume-from-a-stack-of-non-parallel-slices/3054
**Category:** Support
**Created:** [April 15, 2020, 10:02am UTC](https://discourse.vtk.org/t/create-a-volume-from-a-stack-of-non-parallel-slices/3054 "2020-04-15T10:02:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![simonesneault](https://discourse.vtk.org/user_avatar/discourse.vtk.org/simonesneault/32/67_2.png) [@simonesneault](https://discourse.vtk.org/u/simonesneault)
#### Post date: [April 15, 2020, 10:02am UTC](https://discourse.vtk.org/t/create-a-volume-from-a-stack-of-non-parallel-slices/3054/1 "2020-04-15T10:02:39Z")

</div>

Hello community,

What would be the best approach to create an interpolated volume (ideally a vtkImageData) from a stack of 2D non parallel slices (UltraSound images) ? Is it possible ? Here is a snapshot of all images …!  
[stack-images|461x500](https://discourse.vtk.org/uploads/short-url/lfkg2XAiEUMDYpQOogyxWg2gXdQ.png)

Thanks,

Simon

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [April 16, 2020, 3:53pm UTC](https://discourse.vtk.org/t/create-a-volume-from-a-stack-of-non-parallel-slices/3054/2 "2020-04-16T15:53:03Z")

</div>

Freehand tracked ultrasound reconstruction is available in the VTK-based [PLUS toolkit](https://plustoolkit.github.io/). It is based on @dgobbi’s implementation (developed over a decade ago) but many added features added since then, such as GPU acceleration (using OpenCL), hole filling, automatic fan angle detection, various compounding options.

- GUI is available in 3D Slicer (in [SlicerIGT extension](http://www.slicerigt.org/wp/)). Both batch-mode and real-time volume reconstruction. These old video shows the concept (volume reconstruction is continuous now, you don’t need to wait 1-2 seconds for updates):

- Command-line interface is available [here](http://perk-software.cs.queensu.ca/plus/doc/nightly/user/ApplicationVolumeReconstructor.html)
- You can also link the algorithm directly into your application (it is available in [IGSIO library](https://github.com/IGSIO/IGSIO/tree/master/Source/VolumeReconstruction), so you don’t need to pull in the entire PLUS toolkit to use it).

---

<div class="post-metadata">

### Author: ![simonesneault](https://discourse.vtk.org/user_avatar/discourse.vtk.org/simonesneault/32/67_2.png) [@simonesneault](https://discourse.vtk.org/u/simonesneault)
#### Post date: [April 17, 2020, 9:36am UTC](https://discourse.vtk.org/t/create-a-volume-from-a-stack-of-non-parallel-slices/3054/3 "2020-04-17T09:36:24Z")

</div>

Thank you !  
We will try the IGSIO library, it seems to be the good solution for us 🙂
