MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Tabish Raza
on 26 Mar 2013

Helo I have an segmented image , trying to find dice similarity index between the segmented image and ground truth.

Answer by Anand
on 26 Mar 2013

Edited by Anand
on 26 Mar 2013

Accepted answer

How about this:

dice = 2*nnz(segIm&grndTruth)/(nnz(segIm) + nnz(grndTruth))

This expects segIm and grndTruth to be of the same size. They must also be numeric or logical.

Image Analyst
on 26 Mar 2013

I don't understand. segIm is what he called your final segmented image - your final binary image after all processing has been done. What do you mean by "how to put is that whole image"? There is nothing to put, it is just a variable. And you stick the variable into the equation.

Answer by APOORVA SAFAI
on 17 Oct 2014

how to make the two images of same size if they differ?

## 0 Comments