Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Sørensen-Dice similarity coefficient for image segmentation

`similarity = dice(BW1,BW2)`

`similarity = dice(L1,L2)`

`similarity = dice(C1,C2)`

computes the Sørensen-Dice similarity coefficient between binary images
`similarity`

= dice(`BW1`

,`BW2`

)`BW1`

and `BW2`

.

computes the Dice index for each label in label images `similarity`

= dice(`L1`

,`L2`

)`L1`

and
`L2`

.

computes the Dice index for each category in categorical images
`similarity`

= dice(`C1`

,`C2`

)`C1`

and `C2`

.