# VolumeReconstruction module: how can the output volume be saved?

**URL:** <https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121>\
**Category:** Support\
**Tags:** ultrasound, volume\
**Created:** [June 14, 2021, 6:11pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121 "2021-06-14T18:11:03Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [June 14, 2021, 6:11pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/1 "2021-06-14T18:11:03Z")

</div>

Operating system: Win64  
Slicer version: Slicer 4.11.20210226  
Expected behavior: Build and save ultrasound volume through module VolumeReconstruction  
Actual behavior: The expected output volume is always empty.

Hello everyone,

I am following this [tutorial video](https://www.youtube.com/watch?v=2vXeJxYFou4), trying to generate Ultrasound volume.

However, in the Volume Reconstruction module, I was not able to find any function to save the volume, nor rendering the three anatomy planes of the volume.

Here is [a screenshot](https://imgbb.com/mbfRNzF) of what I have done.

As shown in the screenshot, the output “volume” is a created new volume. I have tried to save/rendering it after “start” reconstruction, after “stop” reconstruction; however, the input “Image\_Transducer” image can never be collected by the “Volume.”

I can currently only save an empty volume.

Could anyone please share some idea about how to collect 2D scans into the volume, and then save it as an ultrasound volume data (.nrrd) file?

Thank you so much in advance!

---

<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 14, 2021, 6:41pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/2 "2021-06-14T18:41:36Z")

</div>

It seems that you have not reconstructed any volume. Could you record a sequence into the scene and share that scene as a .mrb file (upload it somewhere and post the link here) so that we can check what’s wrong?

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [June 14, 2021, 8:16pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/3 "2021-06-14T20:16:55Z")

</div>

Hi Iassoan,

Thank you for your reply!

I know how to save a scene, however, I have no idea about how to record a sequence.

Could you please let me know how to record a sequence? It that using the VolumeReconstruction module, or some module else? And is there any relationship between the recorded sequence (saved inside the .mrd file, or a separate file) and a scene?

---

<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 15, 2021, 2:50pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/4 "2021-06-15T14:50:20Z")

</div>

You can record tracking and image data using Sequences module as described [here](https://slicer.readthedocs.io/en/latest/user_guide/modules/sequences.html#recording-node-changes-into-a-sequence-node).

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [June 15, 2021, 11:25pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/5 "2021-06-15T23:25:17Z")

</div>

Hi Iassoan,

I recorded a sequence into the scene, however, only with Image\_Transducer recorded; I was not able to find the way to record the reformated node with the transform ProbeToTracker applied.

You can find and download the scene file [from here](https://www.dropbox.com/s/j9oi6ys34fj304u/2021-06-15-Scene.mrb?dl=0).

In the recorded sequence, you will see the stream without moving, while in reality, the 2D scan was moving inside the ROI from one side to the other.

Please kindly teach me how to record the sequence with the transform ProbeToTracker applied.

You will also see that the output volume from the module VolumeReconstruction is always empty.  
Please help me with that problem.

I really appreciate your help!  
And please help me

---

<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 17, 2021, 4:06am UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/6 "2021-06-17T04:06:54Z")

</div>

Add all the nodes that you want to record to the same sequence browser node. If you have trouble with this then tell exactly what you tried (each mouse click), or record a screen capture video of what you did.

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [June 21, 2021, 2:43am UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/7 "2021-06-21T02:43:50Z")

</div>

Hi Iassoan,

Please find the [new scene file](https://www.dropbox.com/s/q4bmd8n0ccxa1j5/2021-06-20-Scene.mrb?dl=0).  
And please watch the [detailed screen video](https://www.youtube.com/watch?v=mbT1t1-IiFM) that matched that scene file above (.mrb), which shows how exactly I was trying to generate ultrasound volume and record sequence.

Please share any idea that how can I generate non-empty ultrasound volume, and save it.

---

<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 25, 2021, 9:39pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/8 "2021-06-25T21:39:46Z")

</div>

Thanks a lot, these scene is very helpful. Except the transformed ROI, everything looks good to me, but even if I remove the transform from the ROI I don’t see the volume being reconstructed.

@Sunderlandkyl could you please have a look at this?

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [July 18, 2021, 11:42pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/9 "2021-07-18T23:42:32Z")

</div>

Do we have any updates on this problem, please?

Thank you so much in advance!

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [July 19, 2021, 10:18pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/10 "2021-07-19T22:18:00Z")

</div>

I’ve made some fixes and updated the volume reconstruction module to work with transformed ROI nodes.  
You should be able to try them in the preview build tomorrow.

I noticed that in the scene, you have your reconstructed output in the same sequence browser as your input data. If you are reconstructing from recorded data you will need to remove that sequence from the sequence browser, as it will overwrite the reconstruction results.

---

<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:** [July 19, 2021, 11:57pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/11 "2021-07-19T23:57:02Z")

</div>

> [@Sunderlandkyl](#):
>
> I noticed that in the scene, you have your reconstructed output in the same sequence browser as your input data. If you are reconstructing from recorded data you will need to remove that sequence from the sequence browser, as it will overwrite the reconstruction results.

Good catch! This probably does not happen often, but if it is easy to add a check (maybe when the user starts volume reconstruction) then we could display a warning popup: If user presses OK then the module removes the reconstructed output volume from the sequence; if the user clicks Cancel then nothing happens, the reconstruction does not get started (I don’t think it can ever make sense to have the reconstruction result in the same browser node as the input).

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [July 20, 2021, 12:21am UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/12 "2021-07-20T00:21:03Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [July 20, 2021, 12:52am UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/13 "2021-07-20T00:52:31Z")

</div>

> [@sunshine](#):
>
> I am not sure I get your point, because the “Volume” is always constructed from new input data. I believe you can verify this from the video I provided, just in the same post where you download the scene file. I never try generating “Volume from recorded data”.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/d/4d207ac09d0d97b93790d11f37d47437a0234a77.png)

If you are reconstructing using the sequence browser in the scene, Sequence\_2 will overwrite the output node (“Volume”) when the reconstruction has completed.

> [@sunshine](#):
>
> Actually, I believe the problem is not about transformed ROI. I mentioned from the very beginning that, the constructed volume is always EMPTY as I start from sratch (not from recorded data), no matter using transformed ROI or not. The screenshot without using transformed ROI had been uploaded earlier in the Github post, as you requested.

Yes, there were additional fixes to the way that the input transforms were concatenated which should solve the problem. The ability to use transformed a ROI is a new feature. Please try the preview release tomorrow and let us know if the issue persists.

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [July 20, 2021, 2:14pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/14 "2021-07-20T14:14:05Z")

</div>

Hi Sunderlandkyl,

I just did a test on the preview version.

The good news is, the volume is not empty anymore.  
However, the results seem to be weird. Please check [this screenshot](https://ibb.co/bgHJtg0).

I have no idea why the volume seems to be super noisy everywhere. I was no able to get even one interpretable cross-section. It seems far from the transducer input.

Could you please share your idea?

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [July 20, 2021, 4:20pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/15 "2021-07-20T16:20:11Z")

</div>

Is this a reconstruction from the recorded sequence in the scene?

The tracking in the first 2/3rds of the sequence is quite unstable, causing the ultrasound position to jump around significantly. That would result in a lot of noise in the reconstructed volume.

---

<div class="post-metadata">

**Author:** ![sunshine](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Post date:** [July 20, 2021, 7:43pm UTC](https://discourse.slicer.org/t/volumereconstruction-module-how-can-the-output-volume-be-saved/18121/16 "2021-07-20T19:43:50Z")

</div>

Hi Sunderlandkyl,

No, it is from a live stream.

To make everything clear, I did a procedure recording again.  
Please check [this video recording](https://www.youtube.com/watch?v=WV3qAXCXMqA) with the test of the preview version just now.

And here is [the saved scene file](https://www.dropbox.com/s/17l3gaufcxi5qdo/2021-07-20-Scene.mrb?dl=0).

If you watch my recorded video, you can see that “Volume\_1” is super noisy almost everywhere. To avoid noises, I did just one round volume collection, with no repeat at all.

However, if you load the scene file and replay the saved “Volume\_1”, the volume seems fine. Not that Noisy.

Here are two questions:  
1. Why so noisy before reloading?  
2. Why do the Volume cross-sections seem so “lower-resolution” than the 2D view? Like a down-sampling from the 2D view?

Thank you so much for your help in advance!
