MATLAB Answers

Why dice similarity is so low for those two images?

6 views (last 30 days)
Please see attached images. Even in the eye seem that are very close one image to the other since they are more or less the same with different post processing values.
Yet the dice(x,y) gives me only 0.00272479564032698
where it should give me close to 1. With that number it tells me that those two have nothing in common which is not true.
What am I doing wrong?

  1 Comment

Stelios Fanourakis
Stelios Fanourakis on 12 Sep 2019
Has something to do with the Bitdepth? At one pic is 8 and the other is 1.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 12 Sep 2019
Because not many of the white pixels are in the same location in the two images. Maybe you can try imregister() first to align them, and then try again.

  15 Comments

Image Analyst
Image Analyst on 15 Sep 2019
DICE looks at the percentage of overlap bewtween two binary images. SSIM works with grayscale images and does not require any sort of alignment since it's based on bulk measurements like mean and standard deviation so the objects could be anywhere.
Stelios Fanourakis
Stelios Fanourakis on 15 Sep 2019
So I might stick with SSIM. I believe it is more accurate for my occasion. Thanks Image Analyst

Sign in to comment.

More Answers (0)

Sign in to answer this question.