# bug to calculate dice

**URL:** <https://discourse.slicer.org/t/bug-to-calculate-dice/30293>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [June 29, 2023, 2:39am UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293 "2023-06-29T02:39:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![steph85](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@steph85](https://discourse.slicer.org/u/steph85)\
**Post date:** [June 29, 2023, 2:39am UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/1 "2023-06-29T02:39:30Z")

</div>

Hi, have you some problem to calculate a dice because for me it takes me too time.

---

<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:** [June 29, 2023, 9:52am UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/2 "2023-06-29T09:52:11Z")

</div>

Please tell us more. Where does the data come from? What is the resolution? What Slicer version you are using? What module? How do you use the module? What did you expect to happen and what happened instead?

---

<div class="post-metadata">

**Author:** ![steph85](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@steph85](https://discourse.slicer.org/u/steph85)\
**Post date:** [June 29, 2023, 3:23pm UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/3 "2023-06-29T15:23:56Z")

</div>

The data are from a one drive and i import them to the software in the dicom database then i choose two strustures set to make a segment comparaison, i would like to compare two structures (oragan by organ) set dicom ( around fifty thousand bytes each), i dont know at that what is the resolution, i use the 5.2.2 version on slicer 3d plus slicerRT extension, i use segment comparaison for the choice of the module… I make a comparaison of two structures (ex: lung/ lung, buccal cavity/buccal cavity

 ![Capture d'écran 2023-06-29 172053](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/1/01646664bfcf311a8768509efb5b318257f5f416.png)  
) and

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [June 29, 2023, 4:07pm UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/4 "2023-06-29T16:07:04Z")

</div>

Out of memory.

My first thought is that you have too many structures for the size of your RAM. You might try deleting any structures you don’t need.

My second thought is you might be running other memory-hungry applications. You can check memory usage in Task Manager.

---

<div class="post-metadata">

**Author:** ![steph85](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@steph85](https://discourse.slicer.org/u/steph85)\
**Post date:** [June 29, 2023, 4:22pm UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/5 "2023-06-29T16:22:19Z")

</div>

Thank you i will try with checking the ram… The problem with the structures is i don’t know how to import structure by structure and not all the structure set like i made from eclipse. I will search if it’s possible.

 ![Capture d'écran 2023-06-29 181924](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/4/e462ce39a051dfd1fe1d5fa56006fa8d5181f5d5.png)

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [June 29, 2023, 4:45pm UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/6 "2023-06-29T16:45:06Z")

</div>

If you can’t exclude them on export, you could delete them in 3D Slicer after import.

---

<div class="post-metadata">

**Author:** ![steph85](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@steph85](https://discourse.slicer.org/u/steph85)\
**Post date:** [July 23, 2023, 12:21pm UTC](https://discourse.slicer.org/t/bug-to-calculate-dice/30293/7 "2023-07-23T12:21:27Z")

</div>

thx for your reply, it’s all good now !
