# Dice similarity coefficient

**URL:** <https://discourse.slicer.org/t/dice-similarity-coefficient/19755>\
**Category:** Support\
**Tags:** extensions-manager\
**Created:** [September 20, 2021, 6:10am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755 "2021-09-20T06:10:29Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [September 20, 2021, 6:10am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/1 "2021-09-20T06:10:29Z")

</div>

Hi all,

Anyone know how to calculate the dice similarity coefficient using 3D slicer?

---

<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:** [September 21, 2021, 4:42pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/2 "2021-09-21T16:42:26Z")

</div>

You can use Segment Comparison module (in SlicerRT extension).

---

<div class="post-metadata">

**Author:** ![Chicago\_Girl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chicago_girl/32/14816_2.png) [@Chicago\_Girl](https://discourse.slicer.org/u/Chicago_Girl)\
**Post date:** [August 4, 2023, 2:45pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/3 "2023-08-04T14:45:29Z")

</div>

Hi,  
is the module name “SlicerRT” or “Segment comparison module”? I can’t find either of them.

---

<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:** [August 4, 2023, 3:52pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/4 "2023-08-04T15:52:08Z")

</div>

Dear @Chicago_Girl as attached

 ![Untitled](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/b/3bbc9195335baf30e384165972df3fb01d4abc6d.png)

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Rojas\_Costa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gonzalo_rojas_costa/32/5259_2.png) [@Gonzalo\_Rojas\_Costa](https://discourse.slicer.org/u/Gonzalo_Rojas_Costa)\
**Post date:** [October 28, 2023, 8:53pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/5 "2023-10-28T20:53:47Z")

</div>

What is the “reference segment” image and “compare segment” one?

Sincerely

Gonzalo Rojas Costa

---

<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:** [October 29, 2023, 1:45am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/6 "2023-10-29T01:45:20Z")

</div>

Dear @Gonzalo_Rojas_Costa,

The reference segment is your ground truth labeling, while the compare segment is your volume segmentation

but I think both must be in .nrrd format.

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [October 30, 2023, 7:36am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/7 "2023-10-30T07:36:40Z")

</div>

Dear MOHD AKMAL MASUD  
I want to calculate the dice similarity coefficient using 3D slicer. However,  
I cannot find how to upload the test and reference segment. when I click on a reference segment and when I want to select a segmentation which has two options: rename new segmentations or delete current segmentation. I do not know what to do to find my prepared reference segment.  
I would be grateful if you guide me with this.

---

<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:** [October 30, 2023, 7:39am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/8 "2023-10-30T07:39:26Z")

</div>

You have to upload in data module first.

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [October 30, 2023, 7:50am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/9 "2023-10-30T07:50:26Z")

</div>

I already uploaded my data. I clicked on the Data then chose file to add then I selected two pictures one of them is mask and another is reference.

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [October 30, 2023, 8:10am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/10 "2023-10-30T08:10:33Z")

</div>

> [@akmal871026](#):
>
> upload in data module

Could you guide step by step please, I tried everything still can’t make comparison.

---

<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:** [October 30, 2023, 8:11am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/11 "2023-10-30T08:11:38Z")

</div>

I need to remote yourself by anydesk or teamviewer apps. If can, let me know

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [October 30, 2023, 9:12am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/13 "2023-10-30T09:12:49Z")

</div>

Hello

Whenever you have time, inform me and I’d be grateful to access to my laptop and I’ll give you my anydesk address.

Kind regards  
Paria

---

<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:** [October 30, 2023, 12:28pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/14 "2023-10-30T12:28:48Z")

</div>

Ok, i will let you know

---

<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:** [October 30, 2023, 12:39pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/15 "2023-10-30T12:39:58Z")

</div>

The segmentation needs to be loaded as a “segmentation” node in Slicer, not volume. What is the file format you are using?

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [November 7, 2023, 2:22pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/16 "2023-11-07T14:22:06Z")

</div>

Hello Everyone  
I want to calculate the dice similarity coefficient using 3D slicer. However,  
I cannot find how to upload the test and reference segment. when I click on a reference segment and when I want to select a segmentation which has two options: rename new segmentations or delete current segmentation. I do not know what to do to find my prepared reference segment.  
I would be grateful if someone could help me out.

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [November 11, 2023, 8:54am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/17 "2023-11-11T08:54:09Z")

</div>

Hello Dear MOHD AKMAL MASUD

Sorry for reaching you at the weekends. I tried very hard and I’m quite frustrated, still I couldn’t find a problem that why I cannot calculate the dice coeffiency. Could you please connect to my computer as remote and take a look. I really appreciate it.

Best regards,  
Paria

---

<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:** [November 11, 2023, 8:55am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/18 "2023-11-11T08:55:31Z")

</div>

Yes sure. Tonight, at 9pm Malaysia time.

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [November 11, 2023, 8:56am UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/19 "2023-11-11T08:56:40Z")

</div>

Sure thank you very much.

---

<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:** [November 11, 2023, 1:02pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/21 "2023-11-11T13:02:25Z")

</div>

Okay, I will remote just a minute. Give me dinner first

---

<div class="post-metadata">

**Author:** ![Paria\_sh\_2000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/paria_sh_2000/32/68063_2.png) [@Paria\_sh\_2000](https://discourse.slicer.org/u/Paria_sh_2000)\
**Post date:** [November 11, 2023, 5:44pm UTC](https://discourse.slicer.org/t/dice-similarity-coefficient/19755/22 "2023-11-11T17:44:46Z")

</div>

I’m still waiting for you…

[Next page](https://discourse.slicer.org/t/dice-similarity-coefficient/19755.md?page=2)
