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 ?
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.
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.
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), 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.
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.
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.
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).
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 your help.
Here is a representative dataset that I want to reformat. https://www.dropbox.com/s/w3rkvcyocwbslpj/9.rar?dl=0
It multiple 2D cine images acquired with a conventional cine sequence from Siemens.