# Dragging OsiriX xml file as segmentation to import into 3D slicer

**URL:** <https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [February 17, 2022, 8:43pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031 "2022-02-17T20:43:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tenzin\_kunkyab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tenzin_kunkyab/32/3916_2.png) [@tenzin\_kunkyab](https://discourse.slicer.org/u/tenzin_kunkyab)\
**Post date:** [February 17, 2022, 8:43pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/1 "2022-02-17T20:43:16Z")

</div>

I have a file with dicom images (CT volume) and xml as the segmentation (just one xml file), when I drag the whole file into the slicer, only dicom image is shown, I couldn’t get the xml segmentation to be imported.

I checked the data as well and there is only the CT volume. I would like to ask how can I import the xml file. Eventually I would like to convert it to nrrd segmentation file.

Thank you!

---

<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:** [February 17, 2022, 11:06pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/2 "2022-02-17T23:06:21Z")

</div>

If the DICOM module is active then all drag-and-dropped file goes right into the DICOM database. If you want to load non-DICOM data, for example OsiriX segmentation files then switch to a different module before drag-and-dropping the data.

---

<div class="post-metadata">

**Author:** ![tenzin\_kunkyab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tenzin_kunkyab/32/3916_2.png) [@tenzin\_kunkyab](https://discourse.slicer.org/u/tenzin_kunkyab)\
**Post date:** [February 18, 2022, 6:18am UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/3 "2022-02-18T06:18:42Z")

</div>

Hi Andras,

I did do that but didn’t work.

I have a folder that contains the CT volume and one xml file as well, I tried to drag the folder but it didnt show the segmentation, only the CT volume.

best  
Tenzin

---

<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:** [February 18, 2022, 4:10pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/4 "2022-02-18T16:10:21Z")

</div>

What software did you use for creating this segmentation?  
Can you provide an example? (upload it to somewhere and post the link here; make sure no patient information is included)

---

<div class="post-metadata">

**Author:** ![tenzin\_kunkyab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tenzin_kunkyab/32/3916_2.png) [@tenzin\_kunkyab](https://discourse.slicer.org/u/tenzin_kunkyab)\
**Post date:** [February 18, 2022, 7:09pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/5 "2022-02-18T19:09:27Z")

</div>

Hi,

For sure, I believe the data is annonymized so hopefully its ok to upload here.

> **[3000566.000000-NA-03192/069.xml and 133 more files](https://wetransfer.com/downloads/ee9783fc35128330c29acc9a47fdd88a20220218190529/95c989)**
>
> 134 files sent via WeTransfer, the simplest way to send your files around the world

the link will expire…

best  
Tenzin

---

<div class="post-metadata">

**Author:** ![tenzin\_kunkyab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tenzin_kunkyab/32/3916_2.png) [@tenzin\_kunkyab](https://discourse.slicer.org/u/tenzin_kunkyab)\
**Post date:** [February 18, 2022, 9:43pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/6 "2022-02-18T21:43:13Z")

</div>

not sure about the software which they used.

[https://wiki.cancerimagingarchive.net/display/Public/LIDC-IDRI](https://wiki.cancerimagingarchive.net/display/Public/LIDC-IDRI)

the dataset was from here.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 18, 2022, 9:52pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/7 "2022-02-18T21:52:09Z")

</div>

@tenzin_kunkyab: That data is famously hard to work with in its native form, but fortunately @fedorov has spent a lot of time making standard representations that are easy to work with in Slicer. Please read this paper for details:

> **[DICOM re‐encoding of volumetrically annotated Lung Imaging Database...](https://aapm.onlinelibrary.wiley.com/doi/10.1002/mp.14445)**
>
> Purpose
> The dataset contains annotations for lung nodules collected by the Lung Imaging Data Consortium and Image Database Resource Initiative (LIDC) stored as standard DICOM objects. The annotation...

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [June 5, 2025, 8:47am UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/8 "2025-06-05T08:47:43Z")

</div>

Dear @lassoan ,

You said need to switch to a different module. May I know which module should use to drag xml file?

---

<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 5, 2025, 3:07pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/9 "2025-06-05T15:07:45Z")

</div>

It can be any module, the important thing is not to be in the DICOM module, because when you drag-and-drop files when the DICOM browser is shown and you have a mix of DICOM and non-DICOM files then I all the files may be attempted to be interpreted as DICOM.

To load OsiriX segmentation files, you can use the `Import OsiriX ROI` module (provided by `Sandbox` extension).

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [June 5, 2025, 3:34pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/10 "2025-06-05T15:34:31Z")

</div>

Dear @lassoan ,

I did. However, the file still cannot be loaded.

I did as below

 ![Screenshot 2025-06-05 233011](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/5/35efab361efc8c089632561690d3b7be9bf894ee.png)

 ![Screenshot 2025-06-05 233123](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/1/f1b75246ca75874e28ffada6bd28ce86e8d4d348.png)

The file as here: [https://drive.google.com/drive/folders/1Rj5reDzavVmU3C3D0jZarqDfse9ygv-S?usp=sharing](https://drive.google.com/drive/folders/1Rj5reDzavVmU3C3D0jZarqDfse9ygv-S?usp=sharing)

---

<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 7, 2025, 2:12pm UTC](https://discourse.slicer.org/t/dragging-osirix-xml-file-as-segmentation-to-import-into-3d-slicer/22031/11 "2025-06-07T14:12:32Z")

</div>

To load OsiriX segmentation files, you can use the `Import OsiriX ROI` module (provided by `Sandbox` extension). The module experimental (not many people use OsiriX, so it is not worth a lot of time investment to polish this feature), so it does not register a reader plugin and therefore instead of drag-and-drop you need use the module’s user interface.
