# Export images of MultiVolumeExplorer

**URL:** https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805
**Category:** Support
**Created:** [November 19, 2018, 2:36pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805 "2018-11-19T14:36:37Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 19, 2018, 2:36pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/1 "2018-11-19T14:36:37Z")

</div>

Dear, everyone,

I have looked at several post on this topic but I have not find something that is working for me.  
What I am trying to do is to reformat a stack of 10 cine slices into a slightly tilted. To be more schematic, let’s say I acquire 10 cine slices in coronal orientation and want to interpolate and reconsturct the same cine stack in transverse orientation.  
To do that I am using multiplevolumeimporter. It works great with our data. Then I use reformat to select a reconstruction plan that I interested in. Finaly, I can switch to mutliplevolumeexplorer to play the cine in my selected plan.

Now I am trying to export the selected cine plan (images) into dicom.  
Does anyone know how it can be done in slicer ?

Thanks a lot for your help,  
PIerre

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [November 19, 2018, 4:25pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/2 "2018-11-19T16:25:07Z")

</div>

Sorry, export of multivolumes into DICOM is not something that multivolume-related modules can do.

To the best of my knowledge, there are no tools in Slicer to help with your task, if I understood it correctly.

Can you give us a bit more details as to what you would like to achieve? Why do you need that DICOM export - is it really critical?

---

<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: [November 19, 2018, 4:38pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/3 "2018-11-19T16:38:09Z")

</div>

You can resample a rotated volume using Sequences extension’s “Crop volume sequence” module. To load a 4D image as Volume Sequence instead of MultiVolume, check “Advanced” checkbox in DICOM module, click “Examine” and select “… as Volume Sequence …” loadable.

I have a semi-functional DICOM exporter for volume sequences. If needed, I can tidy it up and make it available in Sequences extension within a few days.

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 19, 2018, 5:01pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/4 "2018-11-19T17:01:18Z")

</div>

Thank you both for your help.  
@ [Andrey] To be more specific. I am working on cardiac cine images. I am interested in the strain of pulmonary vein along the cardiac cycle. Most of the time, the stack of cine images needs some adjustements (slight tilt in order to have all the time the structure of interest in-plane).  
Then, I would like to export this plane to a software in matlab that needs dicom as inputs.

@ [Andras L] I have tried to load our data as a volume but it is not working properly as the inital data are 2D  
I will try to work on it.

Thank you both  
Pierre

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [November 19, 2018, 6:12pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/5 "2018-11-19T18:12:30Z")

</div>

> [@riep](#):
>
> Then, I would like to export this plane to a software in matlab that needs dicom as inputs.

The challenge in generating DICOM datasets is how to initialize or propagate relevant attributes to have a valid object as a result. “Valid” is an elusive concept here, because there is only one validator ([dciodvfy](http://www.dclunie.com/dicom3tools/dciodvfy.html)), basically, and not all aspects of the dataset can be validated even with that validator.

Considering your situation, most likely your matlab code only cares about few DICOM attributes. It will probably be a much simpler task to add an adapter or modification to your matlab code to take something other than DICOM.

---

<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: [November 20, 2018, 3:32pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/6 "2018-11-20T15:32:13Z")

</div>

4D volume sequence export to DICOM is available as soon as [https://github.com/Slicer/Slicer/pull/1045](https://github.com/Slicer/Slicer/pull/1045) pull request is merged (probably tomorrow).

I fully agree with @fedorov in that if the goal is data exchange between Slicer and MATLAB then DICOM is not a good choice. Instead, you can easily read/write 4D volumes in nrrd format in both Slicer and MATLAB. You can find nrrd reader and writer for MATLAB [here](https://github.com/PerkLab/SlicerMatlabBridge/tree/master/MatlabCommander/commandserver).

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 20, 2018, 4:22pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/7 "2018-11-20T16:22:49Z")

</div>

Thanks a lot for your answers. I am looking foward to test the 4D export plugin.  
You are both right concerning matlab, however I should have precised that the software use binaries bluit from matlab code. So unfortunatly we cannot modify the code.

---

<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: [November 21, 2018, 12:13am UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/8 "2018-11-21T00:13:12Z")

</div>

Export feature will be available in tomorrow’s nightly build. You need to install Sequences extension and load the 4D volume as “Volume sequence” (not as MultiVolume).

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 21, 2018, 8:26am UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/9 "2018-11-21T08:26:59Z")

</div>

![Sans%20titre](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/6/d6081077789562cbd275598b5ab9f25ee304fe23.png)  
Here is what I get when I load my dataset as a volume. As the acquisition is a stack of 2D cine, there may be some discrepancies in DIOCOM tags, as compared to “real” 4D acquisitions. As is it it does not allow to detect this dataset as a cine (see picture). Or maybe I miss something …

Thanks a lot for you help,  
PIerre

---

<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: [November 21, 2018, 3:29pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/10 "2018-11-21T15:29:46Z")

</div>

Is it just a 2D+t data set (time sequence of 2D frames)?

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 21, 2018, 3:42pm UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/11 "2018-11-21T15:42:28Z")

</div>

it’s multiple 2D+t slices.

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 22, 2018, 8:37am UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/12 "2018-11-22T08:37:32Z")

</div>

I can share a dataset if it can help.

Pierre

---

<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: [November 23, 2018, 3:52am UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/13 "2018-11-23T03:52:22Z")

</div>

If you share the images then I can check how much work would it be to add a rule to recognize it as a volume sequence.

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 23, 2018, 8:01am UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/14 "2018-11-23T08:01:19Z")

</div>

Thanks a lot for your help.  
Here is a representative dataset that I want to reformat. [https://www.dropbox.com/s/w3rkvcyocwbslpj/9.rar?dl=0](https://www.dropbox.com/s/w3rkvcyocwbslpj/9.rar?dl=0)  
It multiple 2D cine images acquired with a conventional cine sequence from Siemens.

---

<div class="post-metadata">

### Author: ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)
#### Post date: [November 23, 2018, 8:02am UTC](https://discourse.slicer.org/t/export-images-of-multivolumeexplorer/4805/15 "2018-11-23T08:02:54Z")

</div>

multiplevolume load this dataset correctly, I do not know if it could help you …
