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

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

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

Jaccard similarity coefficient for image segmentation

`similarity = jaccard(bw1,bw2)`

`similarity = jaccard(l1,l2)`

`similarity = jaccard(c1,c2)`

computes the intersection of binary images `similarity`

= jaccard(`bw1`

,`bw2`

)`bw1`

and
`bw2`

divided by the union of `bw1`

and
`bw2`

, also known as the Jaccard index.

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

= jaccard(`l1`

,`l2`

)`l1`

and `l2`

.

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

= jaccard(`c1`

,`c2`

)`c1`

and `c2`

.

Was this topic helpful?