# How to fix "Error occured during ITK connversion" Error

**URL:** <https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381>\
**Category:** Support\
**Created:** [November 2, 2020, 12:52pm UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381 "2020-11-02T12:52:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gipson04](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gipson04](https://discourse.slicer.org/u/gipson04)\
**Post date:** [November 2, 2020, 12:52pm UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/1 "2020-11-02T12:52:44Z")

</div>

Hi

I tend to compare contours from 2 Rt structure files from pinnacle using Segment comparison tool. When i loaded the the files and computed similarity matrix i got a error stating ‘Error occurred during ITK connversion’. How to fix it. Am i doing something stupid? Any help?

---

<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 2, 2020, 1:33pm UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/2 "2020-11-02T13:33:52Z")

</div>

Can you please show us the log? There must be another error that tells us why conversion failed.

---

<div class="post-metadata">

**Author:** ![marianaslicer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/marianaslicer/32/8555_2.png) [@marianaslicer](https://discourse.slicer.org/u/marianaslicer)\
**Post date:** [December 1, 2020, 3:53pm UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/3 "2020-12-01T15:53:36Z")

</div>

Hi everyone.

I am getting the same error. The log message is the following:

> GetBinaryLabelmapRepresentation: No binary labelmap representation in segment
> 
> GetInputSegmentsAsPlmVolumes: Failed to get binary labelmap from reference segment: CTV1 30 4D
> 
> ComputeHausdorffDistances: Error occurred during ITK conversion

I would appreciate some help. Thank you!

---

<div class="post-metadata">

**Author:** ![Olivio\_Donati](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/olivio_donati/32/9374_2.png) [@Olivio\_Donati](https://discourse.slicer.org/u/Olivio_Donati)\
**Post date:** [December 30, 2020, 8:05am UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/4 "2020-12-30T08:05:10Z")

</div>

Hi Did you find a solution yet? I get the exact same error.

---

<div class="post-metadata">

**Author:** ![Costea\_Madalina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/costea_madalina/32/9434_2.png) [@Costea\_Madalina](https://discourse.slicer.org/u/Costea_Madalina)\
**Post date:** [January 6, 2021, 9:33am UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/5 "2021-01-06T09:33:45Z")

</div>

Following…I get the same error as well …

---

<div class="post-metadata">

**Author:** ![stevn\_dk](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@stevn\_dk](https://discourse.slicer.org/u/stevn_dk)\
**Post date:** [January 6, 2021, 12:47pm UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/6 "2021-01-06T12:47:09Z")

</div>

I get the same error as well …

---

<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:** [January 6, 2021, 3:34pm UTC](https://discourse.slicer.org/t/how-to-fix-error-occured-during-itk-connversion-error/14381/7 "2021-01-06T15:34:49Z")

</div>

Segment comparison requires labelmap representation. You can create this labelmap representation in Segmentations module:

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

I’ve submitted an issue to SlicerRT that the behavior should be more intuitive:

> <https://github.com/SlicerRt/SlicerRT/issues/170>
>
> Segment comparison module seems to rely on labelmap representation. Normally the… segmentation is read from RTSTRUCT and so does not contain labelmap representation.
> 
> When somebody wants to compare segments, Segment comparison module simply displays a message "Error occurred during ITK conversion".
> 
> The module should probably compute labelmap representation automatically (but at least print a more meaningful error message).
