# Export DICOM series of volume with a model as ROI

**URL:** <https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403>\
**Category:** Support\
**Tags:** dicom\
**Created:** [November 8, 2017, 12:02pm UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403 "2017-11-08T12:02:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TMC](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@TMC](https://discourse.slicer.org/u/TMC)\
**Post date:** [November 8, 2017, 12:02pm UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/1 "2017-11-08T12:02:41Z")

</div>

Operating system: Windows 7  
Slicer version: 4.6.2

Dear forum,

I just began to discover 3D slicer as a software to handle 3D-scans of µCT.  
Normally I use the software delivered with my system (for research purposes). Hence a cooperation with an other team I’m “forced” to use 3D slicer.  
They send my a lot of files which I would like to analyse the way I used to do with my own samples (because I already begun to analyse my samples that way, and I cant change it during the study).  
The study is about analyzing human stapes.

Here is the problem:  
They send me 9 Volumes with a total of 15 samples in each volume.  
The Files are nrrd. Which normally is actually fine for me.  
But I cant figure which of specimens is which because they are all “unsorted”.  
The other Team did a segmentation of all of them and sorted them (which is good for me) and created an 3D-Model (.ply).  
As well they delivered a label map as .nnrd.

Here is the question:

For my analysis I need a single DICOM series of all of the specemin.  
Creating a DICOM series is easy. But I can’t get slicer to use the .ply file as an ROI.

Right now my approach is to load the nrrd file with all of the specemin, then load the 3D Model of one of the specimen and then create an ROI in the “Crop Volume” Module (wait for a long time) and then use this sub volume to “Create a DICOM Series”.

The real qestion is:

Is there a way to use the .ply file as an ROI for the export of an image series of just one of the specimen.  
Or is there any other way to speed up the process?

I hope I did not confuse you with so much information, if you have any questions feel free to ask

Best

TMC

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [November 8, 2017, 3:40pm UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/2 "2017-11-08T15:40:21Z")

</div>

Hi! I’m having a hard time understanding what you want to do exactly, especially why you want to crop the volume with the model, because as you say the model contains a segmentation. You also say a labelmap is also provided, but I’m not sure if you want to use it for anything.

A few tips until we get a clearer picture:

1. Please use the latest stable (4.8.0), as the version you use is more than a year old
2. Use the Data module for exporting into DICOM, as explained [here](https://www.slicer.org/wiki/Documentation/Nightly/Modules/DICOM)
3. If you want to export to DICOM-RT (either the ply or the labelmap as the structure set), then you’ll need to create a “Segmentation” node from that. Please refer to [this description](https://www.slicer.org/wiki/Documentation/Nightly/Modules/Segmentations#How_to) (second point)

---

<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 8, 2017, 3:46pm UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/3 "2017-11-08T15:46:36Z")

</div>

Yes, it’s not yet clear if you need:

- A. crop by a rectangular box
- B. blank out all the voxels outside the segment

What analysis do you need to do on the data?  
What software do you use for that now?  
Can that software import DICOM-RT structure sets?

You can speed up the process/make it completely automatic by Python scripting (see [this tutorial](https://www.slicer.org/wiki/Documentation/4.8/Training#Slicer4_Programming_Tutorial) to get started).

---

<div class="post-metadata">

**Author:** ![TMC](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@TMC](https://discourse.slicer.org/u/TMC)\
**Post date:** [November 13, 2017, 11:33am UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/4 "2017-11-13T11:33:38Z")

</div>

Dear @lassoan and @cpinter,

thank you for your replys.  
I’m downloading the nightly build right now. And as well I’ll look into the Data module.  
About the DICOM-RT, I’m not sure I’d understand the difference to DICOM.  
The software I use, it is the standard software delivered from Bruker microCT. It is called CTAnalyzer.  
It can open DICOM but I’m not sure it would open DICOM-RT.  
The measurements we need are just some basic information about the stapes. Like hight, area and angle.  
I guess I could do this as well easily in slicer but since the study started using our µCT and the software, a change is (in my opinion) not recommended.

What I want to achieve is to export all of the stapes which are in one big volume.  
I have the label map and the ply models but I’m not able to figure out how to export all of them into separate DICOM series (or any other picture format like png, tiff).  
There must be an easy way. I just didn’t find it jet. (But I look into the Data module of the nightly build )

Best Tobias

---

<div class="post-metadata">

**Author:** ![TMC](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@TMC](https://discourse.slicer.org/u/TMC)\
**Post date:** [November 13, 2017, 12:37pm UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/5 "2017-11-13T12:37:34Z")

</div>

Dear Iassoan,

well yes all I need is to blank out the voxels outside the segment. 🙂

I guess I really have all the necessary information about the data set in the label map and the ply models but i can’t figure it out how to achieve what I want. And maybe my approach is not the best, but it’s the way I want to do this ^^.

I tried to use the segmentation module to create a segment of one of the models.  
The I used the data module to “right klick” and “export to DICOM” module.  
But from there I cant export only the voxels inside the segmentation into a DICOM series of the greyvalues.

Many thanks so far

Best

---

<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 13, 2017, 3:47pm UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/6 "2017-11-13T15:47:59Z")

</div>

To blank out areas of a volume, use Mask Volume effect in Segment editor (see [https://www.youtube.com/watch?v=xZwyW6SaoM4](https://www.youtube.com/watch?v=xZwyW6SaoM4) for a short tutorial).

Generic micro-CT software will not likely to understand DICOM-RT information objects (such as RTSTRUCT for storing segments) or DICOM segmentation objects, so you need to export the modified scalar volume as a CT volume, using Data module as @cpinter suggested. See step-by-step instructions here: [https://www.slicer.org/wiki/Documentation/Nightly/Modules/DICOM#How\_to\_export\_data\_from\_the\_Slicer\_scene\_to\_DICOM\_files](https://www.slicer.org/wiki/Documentation/Nightly/Modules/DICOM#How_to_export_data_from_the_Slicer_scene_to_DICOM_files).

---

<div class="post-metadata">

**Author:** ![TMC](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@TMC](https://discourse.slicer.org/u/TMC)\
**Post date:** [November 14, 2017, 9:22am UTC](https://discourse.slicer.org/t/export-dicom-series-of-volume-with-a-model-as-roi/1403/7 "2017-11-14T09:22:14Z")

</div>

Thank you @lassoan,

using the segment editor is helpfull 🙂

Best TMC
