finding dissimilarity between two binary image in a range between 0 and 10

Hi everybody, I have a problem that requires finding the dissimilarity between 2 binary images I tried to use the euclidean distance but the dissimilarity was large. If anyone can help me to implement such a code with a dissimilarity range between 0 and 10

답변 (3개)

If all you care about is an elementwise similarity metric that is normalized to the range [0 10]
similarity = @(A,B) 10*sum(A(:)==B(:))./numel(A);
similarity([false true true],[true true true])
Note that there are much better similarity metrics out there, but seemed like most of what you cared about was the normalization between [0,10], not how well the similarity metric works.

댓글 수: 1

thank you Alex for your answer but can you please tell me what formula did you use for calculating the similarity

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

카테고리

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

질문:

2016년 4월 13일

편집:

2016년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by