# Unable to import Brainlab SEG to Slicer

**URL:** https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684
**Category:** Support
**Created:** [July 19, 2023, 4:34pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684 "2023-07-19T16:34:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Michele\_Bailo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michele_bailo/32/67234_2.png) [@Michele\_Bailo](https://discourse.slicer.org/u/Michele_Bailo)
#### Post date: [July 19, 2023, 4:34pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/1 "2023-07-19T16:34:56Z")

</div>

Hi everyone,  
I regularly export Slicer segmentations into the Brainlab Elements and Neuronavigation system (using the QuantitativeReporting feature). However, I’ve been experiencing many difficulties in importing segmentations generated from the Brainlab Elements into 3D Slicer (I only succeeded a few times, expecially for manually segmented volume, but never for automatically segmented anatomical structures); usually 3D Slicer come out with this error: “Could not load: Objects as a DICOMSegmentation”  
This feature would be extremely helpful for me since Brainlab Anatomical Mapping is extremely fast and reliable (at least most of the times) in automatically segmenting multiple cerebral structures; however, I always prefer to analyze the preoperative planning and postoperative results in the 3D Slicer environment since it offers many additional features and possibilities (for both clinical and research settings)  
I previously checked other thread in this community, but I was not able to find a solution.

I generated an anonymous dataset in the case someone is able to check the SEG files and understand why they are not read by Slicer. It is possible to download it from this link:

> **[EFASQF-Anonymous.zip](https://www.dropbox.com/s/uarbr72zu60gbrr/EFASQF-Anonymous.zip?dl=0)**
>
> Shared with Dropbox

Thank you very much in advance.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/a/0a02959e1dc28720b4d8843671974fb4a9ffeaad.png)

---

<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 21, 2023, 4:55am UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/2 "2023-07-21T04:55:20Z")

</div>

It’s great that you find useful for analyzing your surgeries using Slicer.

Importing of the DICOM Segmentation object fails due to this error (shown in application log in Slicer):

```auto
ERROR: No sufficient information to derive slice spacing! Unable to interpret the data.
Fatal error encountered.

```

This is a known error in BrainLab’s software. See solution for fixing the DICOM data set here:

> [@Unable to load DICOM segmentation - missing slice thickness](https://discourse.slicer.org/t/unable-to-load-dicom-segmentation-missing-slice-thickness/23737):
>
> I’m unable to load a DICOM segmentation. The segmentation was created by the Brainlab Curve navigation system in the AMIGO suite. I unfortunately cannot share the file. Tested on the latest preview version (version 5.1.0, revision 30987, built 2022-06-02) and the stable release. I was tempted to ignore this and just assume that the file was faulty, but: this was the case for more than one file I could open the segmentation with other software ([ImFusion Suite Demo Version](https://www.imfusion.com/resources/download) to be specific) T…

@fedorov do you know if they have fixed this in later BrainLab software versions?

---

<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: [July 21, 2023, 2:42pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/3 "2023-07-21T14:42:31Z")

</div>

> [@lassoan](#):
>
> @fedorov do you know if they have fixed this in later BrainLab software versions?

Unfortunately, I do not, and I do not have any current contact at BrainLab.

@Michele_Bailo I assume you are a paying customer of BrainLab - did you try reaching out to them to ask to fix this issue? I am happy to join the conversation to help explain the technical details. I could also try reaching out to the contacts I used to have - they may not be at BrainLab anymore, but should know folks. Also - @koeglfryderyk (the author of the post above and an alum of SPL!) is now at BrainLab - we can try reaching out to him. But best would be if the contact is initiated by you @Michele_Bailo, since you are a customer, and I am a random person from the street as far as BrainLab is concerned.

---

<div class="post-metadata">

### Author: ![Michele\_Bailo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michele_bailo/32/67234_2.png) [@Michele\_Bailo](https://discourse.slicer.org/u/Michele_Bailo)
#### Post date: [July 25, 2023, 8:03am UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/4 "2023-07-25T08:03:58Z")

</div>

Yes, the center I work in (San Raffaele Scientific Institute, Milan, Italy) is a paying customer of Brainlab. Actually, I’ve never tried to ask BrainLAB because I genuinely thought it was an issue on the Slicer side, but of course, I can try asking them to intervene in this post or to get in touch with you directly.

The ability to import/export SEG structures (as well as RT structure) from/to software like 3D Slicer was one of the main reasons (although certainly not the only one) why we switched from Medtronic to Brainlab. As I said, it does me an excellent service the fact that I’m already able to export my Slicer segmentations directly into the Brainlab neuronavigation system (since I always prefer to create and study my preplannings in the Slicer environment, due to the immense possibilities it provides). Still, It is frustrating not being able to turn back to Slicer after the procedure (I can do workarounds like using the “Burned-In” option for large volumes and generating RT-structures in the case of smaller ones, but it is time-consuming and entail some data-loss, which is not ideal for my purposes).

I’ll ask Brainlab then and let you know ASAP.

Thank you again for your kindness and help.

---

<div class="post-metadata">

### Author: ![Michele\_Bailo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michele_bailo/32/67234_2.png) [@Michele\_Bailo](https://discourse.slicer.org/u/Michele_Bailo)
#### Post date: [July 26, 2023, 12:57pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/5 "2023-07-26T12:57:55Z")

</div>

I asked Brainlab and they seem interested in addressing the issue. Technicians in Munich are already analyzing in the dataset I uploaded. I also asked them to possibly get in touch with you.  
In the meanwhile, as a preliminary question, they asked me if Slicer has a “dedicated Conformance Dicom Statement”, since they would like to take a look at it. Since I’m not sure what that is, could you please help me with the answer?  
Thank you very much again!

---

<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: [July 26, 2023, 1:09pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/6 "2023-07-26T13:09:47Z")

</div>

> [@Michele\_Bailo](#):
>
> they asked me if Slicer has a “dedicated Conformance Dicom Statement”, since they would like to take a look at it. Since I’m not sure what that is, could you please help me with the answer?

To the best of my knowledge, the answer is “no”.

---

<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: [July 27, 2023, 2:56pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/7 "2023-07-27T14:56:45Z")

</div>

@Michele_Bailo - Thanks for helping push this forward. We agree that standards based interoperability is great for everyone. 👍 to Brainlab and we look forward to working with them on this.

Regarding a conformance statement, it’s common for commercial systems to have these since their code and their development processes are closed. The Slicer code is open and the forum is active so in general this is way more useful than a static conformance statement (which are unfortunately often useless in practice for many products since they are either too vague or even incorrect). That said, if it was important for someone that such a document exists for Slicer it could be done with some effort, I’m sure contributions would be welcome.

---

<div class="post-metadata">

### Author: ![Michele\_Bailo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/michele_bailo/32/67234_2.png) [@Michele\_Bailo](https://discourse.slicer.org/u/Michele_Bailo)
#### Post date: [August 8, 2023, 1:24pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/8 "2023-08-08T13:24:23Z")

</div>

Hi everyone,  
I worked together with Brainlab and we analyzed the problem.  
Here is what we found out:  
The version we had installed in 2020 at San Raffaele Hospital (Milan) has this sort of bug that prevent segmentations automatically generated with the Brainlab Elements Anatomical Mapping to be imported in 3D Slicer.  
However, this problem had (somehow) already been fixed in the newer versions, since the segmentations generated in Munich with the latest software version were correctly imported in my Slicer dataset.

Unfortunately for me, they are not going to fix this issue in my Brainlab version. They suggested me the following workaround (which is a little bit time consuming, but it’s better than nothing):

1. Generate the automatic segmentations with the Anatomical Mapping software in the Elements environment

2. Then enter the SmartBrush application and create a new object (i.e. “Ventricles NEW”); then select the function “Threshold” and select “Ventricles” (generated with automatic segmentation) as reference ROI.

3. Then click apply.

 ![Brainlab Smartbrush](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/9/69c14aaaddb4d6a91f3e76d231c243762dc48767.jpeg)

1. You have now a copy of the original automatically segmented object that can be correctly imported in Slicer  
 ![Object imported in Slicer](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/c/ec1ce1f35debe5640cb63218c15ddae6beb39836.jpeg)

I hope this could be of help to somebody else.  
Thank you all again for your support!

---

<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: [August 8, 2023, 1:30pm UTC](https://discourse.slicer.org/t/unable-to-import-brainlab-seg-to-slicer/30684/9 "2023-08-08T13:30:14Z")

</div>

@Michele_Bailo thank you so much for documenting the workaround and confirming it works for you!
