Note: This page has been translated by MathWorks. Please click here

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

To view all translated materials including this page, select Japan 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 similiarity 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`

.

Was this topic helpful?