# How to Interpolate Between Slices Using Gaussian Kernel - SlicerITKUltrasound Module

**URL:** <https://discourse.slicer.org/t/how-to-interpolate-between-slices-using-gaussian-kernel-sliceritkultrasound-module/36734>\
**Category:** Support\
**Created:** [June 12, 2024, 6:45pm UTC](https://discourse.slicer.org/t/how-to-interpolate-between-slices-using-gaussian-kernel-sliceritkultrasound-module/36734 "2024-06-12T18:45:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valerie](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@valerie](https://discourse.slicer.org/u/valerie)\
**Post date:** [June 12, 2024, 6:45pm UTC](https://discourse.slicer.org/t/how-to-interpolate-between-slices-using-gaussian-kernel-sliceritkultrasound-module/36734/1 "2024-06-12T18:45:09Z")

</div>

Hi,

I am trying to interpolate between the slices of my 3D volume. The desired interpolation method must be Gaussian Kernel weighted average. Upon my research online, there are lots of sources on Gaussian Kernel filtering and smoothing, but that is not what I am trying to achieve. The aim of my project is to reconstruct the kidney by stacking 2D ultrasound images and interpolating between slices to create a denser volume. During my research, I found this module in 3D slicer that relates to ultrasound imaging and has my desired interpolation methods (ITKGaussian, VTKGaussianKernel).

> **[3D Slicer Resamples Ultrasound Images](https://www.kitware.com/3d-slicer-resamples-ultrasound-images/)**
>
> As a medical imaging modality, one of greatest strengths of ultrasound is its ability to inspect the body’s condition in real time. For decades, radiologists, physicians, and ultrasonographers have leveraged traditional two-dimensional (2D)...

However, when I try to resample the 3D volume I created using ImageStacks, there is no image/volume displayed. I tried playing around with the settings and did get something, but not the full image I was hoping for. Does anyone know how to troubleshoot the settings in this module to get the desired volume?

Step 1: Stack 57 .jpg ultrasound images into 3D volume using ImageStacks.  
Step 2: Visualized volume using VolumeRendering.  
Step 3: Applied resampling methods using ScanConvertCurvilinearArray.

 ![Default settings](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/3/b367ea68ab2c8a4d20d918223e15cccb88096b43.png)  
 ![Arbitrary settings](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/e/fe5bbda1e7ba8eabcd87d47cf9580775c4bc1309.jpeg)

---

<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:** [June 16, 2024, 6:54pm UTC](https://discourse.slicer.org/t/how-to-interpolate-between-slices-using-gaussian-kernel-sliceritkultrasound-module/36734/2 "2024-06-16T18:54:42Z")

</div>

If you use freehand ultrasound with tracking then you can use `Volume Reconstruction` module in `SlicerIGT` extension. You can use the “sticks” method for interpolation between slices.

If you have images acquired by a 4D ultrasound probe then you can use SlicerITKUltrasound extension for reconstructing 3D volumes. B-mode conversion is for creating B-mode voxel values from RF data, so you probably do not need this module. Scan conversion is for converting scanlines or slices into a 2D image fan or 3D volume. There are many variations for scan conversion (if your inputs are scanlines or slices, if your transducer slides, rotates, etc.), so I would recommend to check with ITK developers if the current modules support your data.
