3D Volume Reconstruction from 2D Ultrasound Slices

Operating system: Windows
Slicer version: 5.8.1
Expected behavior: volume reconstruction and rendering
Actual behavior: crash
Hi everyone,

I’m quite new to 3D Slicer and this community. I’m trying to reconstruct a 3D volume from a sequence of 2D ultrasound slices. For each slice, I have the corresponding position and orientation as a 4x4 transformation matrix.

I’m currently using the Volume Reconstruction module from the SlicerIGT extension. I started from the code example provided in this forum thread, replacing the synthetic rotations with my actual 4x4 transform matrices. However, my code keeps crashing, and I suspect I’m not setting up the nodes correctly.

At the moment, I’m using an .mha volume as input, but I also have the original stack as individual .png files.

My main questions

Is it a good idea to start from the example linked above? Or would it be better to build everything from scratch?
Could someone help me understand how to correctly set up the transform and image nodes for volume reconstruction?

Any guidance or sample code would be greatly appreciated!

Thank you,

Volume reconstruction in SlicerIGT is very solid. The only known way it can crash is that if you run out of memory. You can run out of memory if you set a too small image spacing and/or set the reconstructed region too large. You can increase the virtual or physical memory in your computer, increase spacing, or reduce reconstructed region to avoid running out of memory.