dice similarity index between segmented image and ground truth

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

 채택된 답변

Anand
Anand 2013년 3월 26일
편집: Anand 2013년 3월 26일
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.

댓글 수: 2

but how to put segIm image value is that whole image
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

APOORVA SAFAI
APOORVA SAFAI 2014년 10월 17일

0 개 추천

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

댓글 수: 3

Use imresize.
how to calculate (segIm&grndTruth) ? is it a multiplication operation ?
(segIm&grndTruth) :
segIm = image that we wanna reference with
grndTruth = image that being reference
just determine what is segIm and grndTruth after you obtain them, just concatenate them (segIm&grndTruth)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2013년 3월 26일

댓글:

2019년 8월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by